Skip to content
Snippets Groups Projects
Commit b96c357d authored by Olav Morken's avatar Olav Morken
Browse files

SimpleSAML_Error_Error::__construct: Pass $cause to parent class.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2478 44740490-163a-0410-bde0-09ae8108e29a
parent 707455a5
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception { ...@@ -49,7 +49,7 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception {
} else { } else {
$msg = $errorCode; $msg = $errorCode;
} }
parent::__construct($msg); parent::__construct($msg, -1, $cause);
$this->errorCode = $errorCode; $this->errorCode = $errorCode;
$this->cause = $cause; $this->cause = $cause;
...@@ -66,16 +66,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception { ...@@ -66,16 +66,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception {
} }
/**
* Retrieve the exception which caused this error.
*
* @return Exception The exception which caused this error, or NULL if no exception caused this error.
*/
public function getCause() {
return $this->cause;
}
/** /**
* Set the HTTP return code for this error. * Set the HTTP return code for this error.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment