__construct() public method

Create a SAML 2 error.
public __construct ( string $status, string | null $subStatus = NULL, string | null $statusMessage = NULL, Exception $cause = NULL )
$status string The top-level status code.
$subStatus string | null The second-level status code. Can be NULL, in which case there is no second-level status code.
$statusMessage string | null The status message. Can be NULL, in which case there is no status message.
$cause Exception The cause of this exception. Can be NULL.
 /**
  * NoAvailableIDP error constructor.
  *
  * @param string $responsible A string telling who is responsible for this error. Can be one of the following:
  *   - \SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder.
  *   - \SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester.
  * @param string|null $message A short message explaining why this error happened.
  * @param \Exception|null $cause An exception that caused this error.
  */
 public function __construct($responsible, $message = null, \Exception $cause = null)
 {
     parent::__construct($responsible, Constants::STATUS_NO_AVAILABLE_IDP, $message, $cause);
 }
 /**
  * ProxyCountExceeded error constructor.
  *
  * @param string $responsible A string telling who is responsible for this error. Can be one of the following:
  *   - \SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder.
  *   - \SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester.
  * @param string|null $message A short message explaining why this error happened.
  * @param \Exception|null $cause An exception that caused this error.
  */
 public function __construct($responsible, $message = null, \Exception $cause = null)
 {
     parent::__construct($responsible, Constants::STATUS_PROXY_COUNT_EXCEEDED, $message, $cause);
 }
 /**
  * NoAuthnContext error constructor.
  *
  * @param string $responsible A string telling who is responsible for this error. Can be one of the following:
  *   - \SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder.
  *   - \SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester.
  * @param string|null $message A short message explaining why this error happened.
  * @param \Exception|null $cause An exception that caused this error.
  */
 public function __construct($responsible, $message = null, \Exception $cause = null)
 {
     parent::__construct($responsible, Constants::STATUS_NO_AUTHN_CONTEXT, $message, $cause);
 }