# OneLogin_Saml2_Error

Extends \Exception

Error class of OneLogin PHP Toolkit

Defines the Error class

### Methods

## Constructor

    __construct(string $msg, integer $code, array $args = null)

### Arguments

#### $msg

`string`

Describes the error.

#### $code

`integer`

The code error (defined in the error class).

#### $args

`array`

Arguments used in the message that describes the error.

### Constants

## SETTINGS_FILE_NOT_FOUND

    SETTINGS_FILE_NOT_FOUND

## SETTINGS_INVALID_SYNTAX

    SETTINGS_INVALID_SYNTAX

## SETTINGS_INVALID

    SETTINGS_INVALID

## METADATA_SP_INVALID

    METADATA_SP_INVALID

## SP_CERTS_NOT_FOUND

    SP_CERTS_NOT_FOUND

## REDIRECT_INVALID_URL

    REDIRECT_INVALID_URL

## PUBLIC_CERT_FILE_NOT_FOUND

    PUBLIC_CERT_FILE_NOT_FOUND

## PRIVATE_KEY_FILE_NOT_FOUND

    PRIVATE_KEY_FILE_NOT_FOUND

## SAML_RESPONSE_NOT_FOUND

    SAML_RESPONSE_NOT_FOUND

## SAML_LOGOUTMESSAGE_NOT_FOUND

    SAML_LOGOUTMESSAGE_NOT_FOUND

## SAML_LOGOUTREQUEST_INVALID

    SAML_LOGOUTREQUEST_INVALID

## SAML_LOGOUTRESPONSE_INVALID

    SAML_LOGOUTRESPONSE_INVALID

## SAML_SINGLE_LOGOUT_NOT_SUPPORTED

    SAML_SINGLE_LOGOUT_NOT_SUPPORTED