diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 22:12:46 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 22:12:46 +0100 |
commit | 7254793d2bbe3f2f3d87d97172c54a54deea0a3a (patch) | |
tree | 696f734b5f0fad620f459a4639e269bffad4444d /framework/Web/Services/TRpcException.php | |
parent | 6a77820f00da900f2355e16ef9aa77cd132fb423 (diff) |
One class per file: framework/Web/Services
Diffstat (limited to 'framework/Web/Services/TRpcException.php')
-rw-r--r-- | framework/Web/Services/TRpcException.php | 31 |
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 |