diff options
author | arron <arron@copiadigital.co.uk> | 2013-12-05 18:28:08 +0000 |
---|---|---|
committer | arron <arron@copiadigital.co.uk> | 2013-12-05 18:28:08 +0000 |
commit | e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017 (patch) | |
tree | b7f17446bd2cbdb7dda26d04cbdc65679c8557f2 /library/SSRS/Soap/ServerException.php | |
parent | e4ee94dbc8be64f9b53f1a323a314a60d0ac86d3 (diff) | |
download | php-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.zip php-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.tar.gz php-ssrs-e0fd2e51a5546d0d85cf249a6ebf45f9e06e6017.tar.bz2 |
Namespaced
Diffstat (limited to 'library/SSRS/Soap/ServerException.php')
-rw-r--r-- | library/SSRS/Soap/ServerException.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/library/SSRS/Soap/ServerException.php b/library/SSRS/Soap/ServerException.php index 3ffce47..7d71d10 100644 --- a/library/SSRS/Soap/ServerException.php +++ b/library/SSRS/Soap/ServerException.php @@ -1,6 +1,8 @@ <?php -class SSRS_Soap_ServerException extends Exception { +namespace SSRS\Soap; + +class ServerException extends \Exception { public $faultcode; public $faultstring; @@ -15,15 +17,15 @@ class SSRS_Soap_ServerException extends Exception { if (isset($body->Fault)) { $fault = $body->Fault->children(); - $exception = new SSRS_Soap_ServerException((string) $fault->faultstring); + $exception = new ServerException((string) $fault->faultstring); $exception->faultcode = (string) $fault->faultcode; $exception->faultstring = (string) $fault->faultstring; $exception->faultactor = (string) $fault->faultactor; } else { - throw new SSRS_Soap_Exception('Invalid server response'); + throw new Exception('Invalid server response'); } return $exception; } -}
\ No newline at end of file +} |