summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Soap
diff options
context:
space:
mode:
Diffstat (limited to 'library/SSRS/Soap')
-rwxr-xr-xlibrary/SSRS/Soap/Exception.php2
-rwxr-xr-xlibrary/SSRS/Soap/NTLM.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/library/SSRS/Soap/Exception.php b/library/SSRS/Soap/Exception.php
index 2257404..4ee891c 100755
--- a/library/SSRS/Soap/Exception.php
+++ b/library/SSRS/Soap/Exception.php
@@ -7,7 +7,7 @@ class Exception extends \Exception {
public $httpCode;
public $response;
- public function __construct($message, $code, $response = null) {
+ public function __construct($message, $code = null, $response = null) {
$this->httpCode = $code;
$this->response = $response;
diff --git a/library/SSRS/Soap/NTLM.php b/library/SSRS/Soap/NTLM.php
index 084e92c..3820de8 100755
--- a/library/SSRS/Soap/NTLM.php
+++ b/library/SSRS/Soap/NTLM.php
@@ -77,11 +77,11 @@ class NTLM extends \SoapClient {
$folder = dirname($path);
if (!is_dir($folder)) {
- throw new SSRS_Soap_Exception('WSDL cache path is not valid');
+ throw new Exception('WSDL cache path is not valid');
}
if (!is_writeable($folder)) {
- throw new SSRS_Soap_Exception('WSDL cache path not writeable');
+ throw new Exception('WSDL cache path not writeable');
}
$this->_cachePath = $path;
@@ -174,4 +174,4 @@ class NTLM extends \SoapClient {
return $this->_lastResponse;
}
-}
+} \ No newline at end of file