ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SimpleSAML\Error\CriticalConfigurationError Class Reference
+ Inheritance diagram for SimpleSAML\Error\CriticalConfigurationError:
+ Collaboration diagram for SimpleSAML\Error\CriticalConfigurationError:

Public Member Functions

 __construct ($reason=null, $file=null, $config=null)
 CriticalConfigurationError constructor. More...
 
- Public Member Functions inherited from SimpleSAML\Error\ConfigurationError
 __construct ($reason=null, $file=null, array $config=null)
 ConfigurationError constructor. More...
 
 getReason ()
 Get the reason for this exception. More...
 
 getConfFile ()
 Get the configuration file that caused this exception. More...
 
- Public Member Functions inherited from SimpleSAML_Error_Error
 __construct ($errorCode, Exception $cause=null, $httpCode=null)
 Constructor for this error. More...
 
 getErrorCode ()
 Retrieve the error code given when throwing this error. More...
 
 getParameters ()
 Retrieve the error parameters given when throwing this error. More...
 
 getDictTitle ()
 Retrieve the error title tag in dictionary. More...
 
 getDictDescr ()
 Retrieve the error description tag in dictionary. More...
 
 show ()
 Display this error. More...
 
- Public Member Functions inherited from SimpleSAML_Error_Exception
 __construct ($message, $code=0, Exception $cause=null)
 Constructor for this error. More...
 
 getBacktrace ()
 Retrieve the backtrace. More...
 
 getCause ()
 Retrieve the cause of this exception. More...
 
 getClass ()
 Retrieve the class of this exception. More...
 
 format ($anonymize=false)
 Format this exception for logging. More...
 
 formatBacktrace ($anonymize=false)
 Format the backtrace for logging. More...
 
 log ($default_level)
 Print the exception to the log, by default with log level error. More...
 
 logError ()
 Print the exception to the log with log level error. More...
 
 logWarning ()
 Print the exception to the log with log level warning. More...
 
 logInfo ()
 Print the exception to the log with log level info. More...
 
 logDebug ()
 Print the exception to the log with log level debug. More...
 
 __sleep ()
 Function for serialization. More...
 

Static Public Member Functions

static fromException (\Exception $exception)
 
- Static Public Member Functions inherited from SimpleSAML_Error_Exception
static fromException (Exception $e)
 Convert any exception into a SimpleSAML_Error_Exception. More...
 

Static Private Attributes

static $minimum_config
 

Additional Inherited Members

- Protected Member Functions inherited from SimpleSAML_Error_Error
 setHTTPCode ()
 Set the HTTP return code for this error. More...
 
 saveError ()
 Save an error report. More...
 
- Protected Member Functions inherited from SimpleSAML_Error_Exception
 initBacktrace (Exception $exception)
 Load the backtrace from the given exception. More...
 
 logBacktrace ($level=\SimpleSAML\Logger::DEBUG)
 Print the backtrace to the log if the 'debug' option is enabled in the configuration. More...
 
- Protected Attributes inherited from SimpleSAML\Error\ConfigurationError
 $reason
 
 $config_file
 
- Protected Attributes inherited from SimpleSAML_Error_Error
 $httpCode = 500
 
 $includeTemplate = null
 

Detailed Description

Definition at line 24 of file CriticalConfigurationError.php.

Constructor & Destructor Documentation

◆ __construct()

SimpleSAML\Error\CriticalConfigurationError::__construct (   $reason = null,
  $file = null,
  $config = null 
)

CriticalConfigurationError constructor.

Parameters
string | null$reasonThe reason for this critical error.
string | null$fileThe configuration file that originated this error.
array|nullThe configuration array that led to this problem.

Definition at line 47 of file CriticalConfigurationError.php.

References $config, $file, SimpleSAML\Error\ConfigurationError\$reason, SimpleSAML\Utils\HTTP\guessBasePath(), and SimpleSAML_Configuration\loadFromArray().

48  {
49  if ($config === null) {
50  $config = self::$minimum_config;
52  }
53 
55  $config,
56  '',
57  'simplesaml'
58  );
59  parent::__construct($reason, $file);
60  }
static guessBasePath()
Try to guess the base SimpleSAMLphp path from the current request.
Definition: HTTP.php:563
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static loadFromArray($config, $location='[ARRAY]', $instance=null)
Loads a configuration from the given array.
+ Here is the call graph for this function:

Member Function Documentation

◆ fromException()

static SimpleSAML\Error\CriticalConfigurationError::fromException ( \Exception  $exception)
static
Parameters
\Exception$exception
Returns
CriticalConfigurationError

Definition at line 68 of file CriticalConfigurationError.php.

References $file, and SimpleSAML\Error\ConfigurationError\$reason.

69  {
70  $reason = null;
71  $file = null;
72  if ($exception instanceof ConfigurationError) {
73  $reason = $exception->getReason();
74  $file = $exception->getConfFile();
75  } else {
76  $reason = $exception->getMessage();
77  }
78  return new CriticalConfigurationError($reason, $file);
79  }
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file

Field Documentation

◆ $minimum_config

SimpleSAML\Error\CriticalConfigurationError::$minimum_config
staticprivate
Initial value:
'logging.handler' => 'errorlog',
'logging.level' => \SimpleSAML\Logger::DEBUG,
'errorreporting' => false,
'debug' => true,
)

Definition at line 32 of file CriticalConfigurationError.php.


The documentation for this class was generated from the following file: