From a491348d442ab8e6cd2fa403d4365cdad78e52ce Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 21 Jun 2018 14:13:41 -0700 Subject: Vendoring deprecated composer libs --- .../src/JsonRPC/Exception/ResponseException.php | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 libs/jsonrpc/src/JsonRPC/Exception/ResponseException.php (limited to 'libs/jsonrpc/src/JsonRPC/Exception/ResponseException.php') diff --git a/libs/jsonrpc/src/JsonRPC/Exception/ResponseException.php b/libs/jsonrpc/src/JsonRPC/Exception/ResponseException.php new file mode 100644 index 00000000..e97b4e6b --- /dev/null +++ b/libs/jsonrpc/src/JsonRPC/Exception/ResponseException.php @@ -0,0 +1,62 @@ +setData($data); + } + + /** + * Attach additional information + * + * @access public + * @param mixed $data [optional] A value that contains additional information about the error. + * @return \JsonRPC\Exception\ResponseException + */ + public function setData($data = null) + { + $this->data = $data; + return $this; + } + + /** + * Get additional information + * + * @access public + * @return mixed|null + */ + public function getData() + { + return $this->data; + } +} -- cgit v1.2.3