From b96c357da294c7f8e2996f9f38f7fd9d99ffd05d Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Fri, 6 Aug 2010 07:21:07 +0000
Subject: [PATCH] SimpleSAML_Error_Error::__construct: Pass $cause to parent
 class.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2478 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SimpleSAML/Error/Error.php | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/lib/SimpleSAML/Error/Error.php b/lib/SimpleSAML/Error/Error.php
index b651a3aad..29abf8e2d 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.
 	 *
-- 
GitLab