Skip to content

Commit b96c357

Browse files
committed
SimpleSAML_Error_Error::__construct: Pass $cause to parent class.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2478 44740490-163a-0410-bde0-09ae8108e29a
1 parent 707455a commit b96c357

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

lib/SimpleSAML/Error/Error.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct($errorCode, Exception $cause = NULL) {
4949
} else {
5050
$msg = $errorCode;
5151
}
52-
parent::__construct($msg);
52+
parent::__construct($msg, -1, $cause);
5353

5454
$this->errorCode = $errorCode;
5555
$this->cause = $cause;
@@ -66,16 +66,6 @@ public function getErrorCode() {
6666
}
6767

6868

69-
/**
70-
* Retrieve the exception which caused this error.
71-
*
72-
* @return Exception The exception which caused this error, or NULL if no exception caused this error.
73-
*/
74-
public function getCause() {
75-
return $this->cause;
76-
}
77-
78-
7969
/**
8070
* Set the HTTP return code for this error.
8171
*

0 commit comments

Comments
 (0)