PHP Class SimpleSAML_Error_NotFound, simplesamlphp

This exception can be thrown from within a module page handler. The user will then be shown a 404 Not Found error page.
Author: Olav Morken, UNINETT AS.
Inheritance: extends SimpleSAML_Error_Error
Afficher le fichier Open project: simplesamlphp/simplesamlphp

Méthodes publiques

Méthode Description
__construct ( string $reason = NULL ) Create a new NotFound error
format ( boolean $anonymize = false ) : array NotFound exceptions don't need to display a backtrace, as they are very simple and the trace is usually trivial, so just log the message without any backtrace at all.
getReason ( ) : string | null Retrieve the reason why the given page could not be found.

Method Details

__construct() public méthode

Create a new NotFound error
public __construct ( string $reason = NULL )
$reason string Optional description of why the given page could not be found.

format() public méthode

NotFound exceptions don't need to display a backtrace, as they are very simple and the trace is usually trivial, so just log the message without any backtrace at all.
public format ( boolean $anonymize = false ) : array
$anonymize boolean Whether to anonymize the trace or not.
Résultat array

getReason() public méthode

Retrieve the reason why the given page could not be found.
public getReason ( ) : string | null
Résultat string | null The reason why the page could not be found.