summaryrefslogtreecommitdiff
path: root/vendor/fguillot/json-rpc/src/JsonRPC/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/json-rpc/src/JsonRPC/Exception')
-rw-r--r--vendor/fguillot/json-rpc/src/JsonRPC/Exception/AccessDeniedException.php15
-rw-r--r--vendor/fguillot/json-rpc/src/JsonRPC/Exception/AuthenticationFailureException.php15
-rw-r--r--vendor/fguillot/json-rpc/src/JsonRPC/Exception/ConnectionFailureException.php15
-rw-r--r--vendor/fguillot/json-rpc/src/JsonRPC/Exception/InvalidJsonFormatException.php15
-rw-r--r--vendor/fguillot/json-rpc/src/JsonRPC/Exception/InvalidJsonRpcFormatException.php15
-rw-r--r--vendor/fguillot/json-rpc/src/JsonRPC/Exception/ResponseEncodingFailureException.php15
-rw-r--r--vendor/fguillot/json-rpc/src/JsonRPC/Exception/ResponseException.php62
-rw-r--r--vendor/fguillot/json-rpc/src/JsonRPC/Exception/ServerErrorException.php15
8 files changed, 167 insertions, 0 deletions
diff --git a/vendor/fguillot/json-rpc/src/JsonRPC/Exception/AccessDeniedException.php b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/AccessDeniedException.php
new file mode 100644
index 00000000..8cb9bc2b
--- /dev/null
+++ b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/AccessDeniedException.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace JsonRPC\Exception;
+
+use Exception;
+
+/**
+ * Class AccessDeniedException
+ *
+ * @package JsonRPC\Exception
+ * @author Frederic Guillot
+ */
+class AccessDeniedException extends Exception
+{
+}
diff --git a/vendor/fguillot/json-rpc/src/JsonRPC/Exception/AuthenticationFailureException.php b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/AuthenticationFailureException.php
new file mode 100644
index 00000000..6237256a
--- /dev/null
+++ b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/AuthenticationFailureException.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace JsonRPC\Exception;
+
+use Exception;
+
+/**
+ * Class AuthenticationFailureException
+ *
+ * @package JsonRPC\Exception
+ * @author Frederic Guillot
+ */
+class AuthenticationFailureException extends Exception
+{
+}
diff --git a/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ConnectionFailureException.php b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ConnectionFailureException.php
new file mode 100644
index 00000000..6f4985bc
--- /dev/null
+++ b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ConnectionFailureException.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace JsonRPC\Exception;
+
+use Exception;
+
+/**
+ * Class ConnectionFailureException
+ *
+ * @package JsonRPC\Exception
+ * @author Frederic Guillot
+ */
+class ConnectionFailureException extends Exception
+{
+}
diff --git a/vendor/fguillot/json-rpc/src/JsonRPC/Exception/InvalidJsonFormatException.php b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/InvalidJsonFormatException.php
new file mode 100644
index 00000000..e5bb31cd
--- /dev/null
+++ b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/InvalidJsonFormatException.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace JsonRPC\Exception;
+
+use Exception;
+
+/**
+ * Class InvalidJsonFormatException
+ *
+ * @package JsonRPC\Exception
+ * @author Frederic Guillot
+ */
+class InvalidJsonFormatException extends Exception
+{
+}
diff --git a/vendor/fguillot/json-rpc/src/JsonRPC/Exception/InvalidJsonRpcFormatException.php b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/InvalidJsonRpcFormatException.php
new file mode 100644
index 00000000..e2277379
--- /dev/null
+++ b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/InvalidJsonRpcFormatException.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace JsonRPC\Exception;
+
+use Exception;
+
+/**
+ * Class InvalidJsonRpcFormatException
+ *
+ * @package JsonRPC\Exception
+ * @author Frederic Guillot
+ */
+class InvalidJsonRpcFormatException extends Exception
+{
+}
diff --git a/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ResponseEncodingFailureException.php b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ResponseEncodingFailureException.php
new file mode 100644
index 00000000..0a40d806
--- /dev/null
+++ b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ResponseEncodingFailureException.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace JsonRPC\Exception;
+
+use Exception;
+
+/**
+ * Class ResponseEncodingFailureException
+ *
+ * @package JsonRPC\Exception
+ * @author Frederic Guillot
+ */
+class ResponseEncodingFailureException extends Exception
+{
+}
diff --git a/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ResponseException.php b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ResponseException.php
new file mode 100644
index 00000000..98fb5c67
--- /dev/null
+++ b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ResponseException.php
@@ -0,0 +1,62 @@
+<?php
+
+namespace JsonRPC\Exception;
+
+use Exception;
+
+/**
+ * Class ResponseException
+ *
+ * @package JsonRPC\Exception
+ * @author Frederic Guillot
+ */
+class ResponseException extends Exception
+{
+ /**
+ * A value that contains additional information about the error.
+ *
+ * @access protected
+ * @link http://www.jsonrpc.org/specification#error_object
+ * @var mixed
+ */
+ protected $data;
+
+ /**
+ * Constructor
+ *
+ * @access public
+ * @param string $message [optional] The Exception message to throw.
+ * @param int $code [optional] The Exception code.
+ * @param Exception $previous [optional] The previous exception used for the exception chaining. Since 5.3.0
+ * @param mixed $data [optional] A value that contains additional information about the error.
+ */
+ public function __construct($message = '', $code = 0, Exception $previous = null, $data = null)
+ {
+ parent::__construct($message, $code, $previous);
+ $this->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;
+ }
+}
diff --git a/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ServerErrorException.php b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ServerErrorException.php
new file mode 100644
index 00000000..ab3ea584
--- /dev/null
+++ b/vendor/fguillot/json-rpc/src/JsonRPC/Exception/ServerErrorException.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace JsonRPC\Exception;
+
+use Exception;
+
+/**
+ * Class ServerErrorException
+ *
+ * @package JsonRPC\Exception
+ * @author Frederic Guillot
+ */
+class ServerErrorException extends Exception
+{
+}