diff --git a/lib/SimpleSAML/Error/Error.php b/lib/SimpleSAML/Error/Error.php index b651a3aad0a23be2edbb805db4fe825704cf66f8..29abf8e2d5cae2627b3f866660ff64c69023667e 100644 --- a/lib/SimpleSAML/Error/Error.php +++ b/lib/SimpleSAML/Error/Error.php @@ -49,7 +49,7 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception { } else { $msg = $errorCode; } - parent::__construct($msg); + parent::__construct($msg, -1, $cause); $this->errorCode = $errorCode; $this->cause = $cause; @@ -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. *