ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\Response\Exception\PreconditionNotMetException Class Reference

Named exception to indicate that the preconditions for processing the SAML response have not been met. More...

+ Inheritance diagram for SAML2\Response\Exception\PreconditionNotMetException:
+ Collaboration diagram for SAML2\Response\Exception\PreconditionNotMetException:

Static Public Member Functions

static createFromValidationResult (Result $result)
 

Detailed Description

Named exception to indicate that the preconditions for processing the SAML response have not been met.

Definition at line 10 of file PreconditionNotMetException.php.

Member Function Documentation

◆ createFromValidationResult()

static SAML2\Response\Exception\PreconditionNotMetException::createFromValidationResult ( Result  $result)
static

Definition at line 12 of file PreconditionNotMetException.php.

13 {
14 $message = sprintf(
15 'Cannot process response, preconditions not met: "%s"',
16 implode('", "', $result->getErrors())
17 );
18
19 return new self($message);
20 }
$result
catch(Exception $e) $message

References $message, and $result.

Referenced by SAML2\Response\Processor\enforcePreconditions().

+ Here is the caller graph for this function:

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