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

Error_Assertion: Change to internal error.

Change the SimpleSAML_Error_Assertion class to inherit from
SimpleSAML_Error_Exception, to signal it being an internal error.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1588 44740490-163a-0410-bde0-09ae8108e29a
parent 90de9a60
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
* @package simpleSAMLphp
* @version $Id$
*/
class SimpleSAML_Error_Assertion extends SimpleSAML_Error_Error {
class SimpleSAML_Error_Assertion extends SimpleSAML_Error_Exception {
/**
......@@ -28,7 +28,8 @@ class SimpleSAML_Error_Assertion extends SimpleSAML_Error_Error {
public function __construct($assertion = NULL) {
assert('is_null($assertion) || is_string($assertion)');
parent::__construct(array('ASSERTFAIL', '%ASSERTION%' => var_export($assertion, TRUE)));
$msg = 'Assertion failed: ' . var_export($assertion, TRUE);
parent::__construct($msg);
$this->assertion = $assertion;
}
......
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