summaryrefslogtreecommitdiff
path: root/framework/Web/Services/TRpcException.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Services/TRpcException.php')
-rw-r--r--framework/Web/Services/TRpcException.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/framework/Web/Services/TRpcException.php b/framework/Web/Services/TRpcException.php
new file mode 100644
index 00000000..7c0cb65f
--- /dev/null
+++ b/framework/Web/Services/TRpcException.php
@@ -0,0 +1,31 @@
+<?php
+/**
+ * @author Robin J. Rogge <rrogge@bigpoint.net>
+ * @link http://www.pradosoft.com/
+ * @copyright 2010 Bigpoint GmbH
+ * @license http://www.pradosoft.com/license/
+ * @version $Id$
+ * @since 3.2
+ * @package System.Web.Services
+ */
+
+/**
+ * TRpcException class
+ *
+ * A TRpcException represents a RPC fault i.e. an error that is caused by the input data
+ * sent from the client.
+ *
+ * @author Robin J. Rogge <rrogge@bigpoint.net>
+ * @version $Id$
+ * @package System.Web.Services
+ * @since 3.2
+ */
+class TRpcException extends TException
+{
+ public function __construct($message, $errorCode = -1)
+ {
+ $this->setErrorCode($errorCode);
+
+ parent::__construct($message);
+ }
+} \ No newline at end of file