4 require_once(dirname(dirname(__FILE__)).
'/lib/_autoload.php');
16 } elseif ($exception instanceof
Exception) {
17 $e =
new SimpleSAML_Error_Error(
'UNHANDLEDEXCEPTION', $exception);
20 if (class_exists(
'Error') && $exception instanceof Error) {
21 $code = $exception->getCode();
23 $errstr = $exception->getMessage();
24 $errfile = $exception->getFile();
25 $errline = $exception->getLine();
31 set_exception_handler(
'SimpleSAML_exception_handler');
36 if (!class_exists(
'SimpleSAML\Logger')) {
45 if (
SimpleSAML\Logger::isErrorMasked($errno)) {
65 set_error_handler(
'SimpleSAML_error_handler');
70 throw new \SimpleSAML\Error\CriticalConfigurationError(
SimpleSAML_error_handler($errno, $errstr, $errfile=null, $errline=0, $errcontext=null)
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
static initTimezone()
Initialize the timezone.
SimpleSAML_exception_handler($exception)
Attribute-related utility methods.
static installHandler()
Install this assertion handler.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.