summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Soap
diff options
context:
space:
mode:
authorjaysmith6811@gmail.com <jaysmith6811@gmail.com@deae1e92-32f9-c189-e222-5b9b5081a27a>2012-09-25 15:50:03 +0000
committerjaysmith6811@gmail.com <jaysmith6811@gmail.com@deae1e92-32f9-c189-e222-5b9b5081a27a>2012-09-25 15:50:03 +0000
commite5402b28c9a3f22030f40a4fa179a3bcf6480b7c (patch)
tree57891e35a4519edf97fbe3a390aef879bb133977 /library/SSRS/Soap
parentd5fc5d659d7c6f76b07f781f253b67835f1b1dd1 (diff)
downloadphp-ssrs-e5402b28c9a3f22030f40a4fa179a3bcf6480b7c.zip
php-ssrs-e5402b28c9a3f22030f40a4fa179a3bcf6480b7c.tar.gz
php-ssrs-e5402b28c9a3f22030f40a4fa179a3bcf6480b7c.tar.bz2
Execution info object, getExecutionInfo method
Diffstat (limited to 'library/SSRS/Soap')
-rwxr-xr-xlibrary/SSRS/Soap/Exception.php14
-rwxr-xr-xlibrary/SSRS/Soap/NTLM.php2
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);