Skip to content
Snippets Groups Projects
Unverified Commit ce1d570e authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Update Error.php

parent a264a9d0
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
*/ */
class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
{ {
/** /**
* The error code. * The error code.
* *
...@@ -18,7 +16,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -18,7 +16,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
*/ */
private $errorCode; private $errorCode;
/** /**
* The http code. * The http code.
* *
...@@ -26,7 +23,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -26,7 +23,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
*/ */
protected $httpCode = 500; protected $httpCode = 500;
/** /**
* The error title tag in dictionary. * The error title tag in dictionary.
* *
...@@ -34,7 +30,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -34,7 +30,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
*/ */
private $dictTitle; private $dictTitle;
/** /**
* The error description tag in dictionary. * The error description tag in dictionary.
* *
...@@ -42,7 +37,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -42,7 +37,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
*/ */
private $dictDescr; private $dictDescr;
/** /**
* The name of module that threw the error. * The name of module that threw the error.
* *
...@@ -50,7 +44,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -50,7 +44,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
*/ */
private $module = null; private $module = null;
/** /**
* The parameters for the error. * The parameters for the error.
* *
...@@ -58,7 +51,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -58,7 +51,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
*/ */
private $parameters; private $parameters;
/** /**
* Name of custom include template for the error. * Name of custom include template for the error.
* *
...@@ -66,7 +58,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -66,7 +58,6 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
*/ */
protected $includeTemplate = null; protected $includeTemplate = null;
/** /**
* Constructor for this error. * Constructor for this error.
* *
...@@ -254,9 +245,9 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -254,9 +245,9 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
$this->logError(); $this->logError();
$errorData = $this->saveError(); $errorData = $this->saveError();
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
$data = array();
$data['showerrors'] = $config->getBoolean('showerrors', true); $data['showerrors'] = $config->getBoolean('showerrors', true);
$data['error'] = $errorData; $data['error'] = $errorData;
$data['errorCode'] = $this->errorCode; $data['errorCode'] = $this->errorCode;
......
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