diff options
Diffstat (limited to 'library/SSRS/Soap')
-rwxr-xr-x | library/SSRS/Soap/Exception.php | 14 | ||||
-rwxr-xr-x | library/SSRS/Soap/NTLM.php | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/library/SSRS/Soap/Exception.php b/library/SSRS/Soap/Exception.php index c2c0977..9d0902a 100755 --- a/library/SSRS/Soap/Exception.php +++ b/library/SSRS/Soap/Exception.php @@ -1,3 +1,15 @@ <?php -class SSRS_Soap_Exception extends Exception{}
\ No newline at end of file +class SSRS_Soap_Exception extends Exception{ + + public $httpCode; + public $response; + + public function __construct($message, $code, $response) { + $this->httpCode = $code; + $this->response = $response; + + parent::__construct($message, $code); + } + +}
\ No newline at end of file diff --git a/library/SSRS/Soap/NTLM.php b/library/SSRS/Soap/NTLM.php index 9132eae..0562c6d 100755 --- a/library/SSRS/Soap/NTLM.php +++ b/library/SSRS/Soap/NTLM.php @@ -154,7 +154,7 @@ class SSRS_Soap_NTLM extends SoapClient { $httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE); if ($httpCode !== 200) { - throw new SSRS_Soap_Exception('HTTP error: ' . $httpCode . ' ' . $response, $httpCode); + throw new SSRS_Soap_Exception('HTTP error: ' . $httpCode . ' ' . $response, $httpCode, $response); } curl_close($handle); |