# \OneLogin_Saml2_ValidationError

This class implements another custom Exception handler, related to exceptions that happens during validation process.

## Summary

Methods
Properties
Constants
__construct()
No public properties found
UNSUPPORTED_SAML_VERSION
MISSING_ID
WRONG_NUMBER_OF_ASSERTIONS
MISSING_STATUS
MISSING_STATUS_CODE
STATUS_CODE_IS_NOT_SUCCESS
WRONG_SIGNED_ELEMENT
ID_NOT_FOUND_IN_SIGNED_ELEMENT
DUPLICATED_ID_IN_SIGNED_ELEMENTS
INVALID_SIGNED_ELEMENT
DUPLICATED_REFERENCE_IN_SIGNED_ELEMENTS
UNEXPECTED_SIGNED_ELEMENTS
WRONG_NUMBER_OF_SIGNATURES_IN_RESPONSE
WRONG_NUMBER_OF_SIGNATURES_IN_ASSERTION
INVALID_XML_FORMAT
WRONG_INRESPONSETO
NO_ENCRYPTED_ASSERTION
NO_ENCRYPTED_NAMEID
MISSING_CONDITIONS
ASSERTION_TOO_EARLY
ASSERTION_EXPIRED
WRONG_NUMBER_OF_AUTHSTATEMENTS
NO_ATTRIBUTESTATEMENT
ENCRYPTED_ATTRIBUTES
WRONG_DESTINATION
EMPTY_DESTINATION
WRONG_AUDIENCE
ISSUER_MULTIPLE_IN_RESPONSE
ISSUER_NOT_FOUND_IN_ASSERTION
WRONG_ISSUER
SESSION_EXPIRED
WRONG_SUBJECTCONFIRMATION
NO_SIGNED_MESSAGE
NO_SIGNED_ASSERTION
NO_SIGNATURE_FOUND
KEYINFO_NOT_FOUND_IN_ENCRYPTED_DATA
CHILDREN_NODE_NOT_FOUND_IN_KEYINFO
UNSUPPORTED_RETRIEVAL_METHOD
NO_NAMEID
EMPTY_NAMEID
SP_NAME_QUALIFIER_NAME_MISMATCH
DUPLICATED_ATTRIBUTE_NAME_FOUND
INVALID_SIGNATURE
WRONG_NUMBER_OF_SIGNATURES
RESPONSE_EXPIRED
UNEXPECTED_REFERENCE
NOT_SUPPORTED
KEY_ALGORITHM_ERROR
MISSING_ENCRYPTED_ELEMENT
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

File
  Error.php
Package
  Default
Class hierarchy
  \Exception
  \OneLogin_Saml2_ValidationError

## Tags

None found

## Constants

### UNSUPPORTED_SAML_VERSION

    UNSUPPORTED_SAML_VERSION

#

## Tags

None found

### MISSING_ID

    MISSING_ID

#

## Tags

None found

### WRONG_NUMBER_OF_ASSERTIONS

    WRONG_NUMBER_OF_ASSERTIONS

#

## Tags

None found

### MISSING_STATUS

    MISSING_STATUS

#

## Tags

None found

### MISSING_STATUS_CODE

    MISSING_STATUS_CODE

#

## Tags

None found

### STATUS_CODE_IS_NOT_SUCCESS

    STATUS_CODE_IS_NOT_SUCCESS

#

## Tags

None found

### WRONG_SIGNED_ELEMENT

    WRONG_SIGNED_ELEMENT

#

## Tags

None found

### ID_NOT_FOUND_IN_SIGNED_ELEMENT

    ID_NOT_FOUND_IN_SIGNED_ELEMENT

#

## Tags

None found

### DUPLICATED_ID_IN_SIGNED_ELEMENTS

    DUPLICATED_ID_IN_SIGNED_ELEMENTS

#

## Tags

None found

### INVALID_SIGNED_ELEMENT

    INVALID_SIGNED_ELEMENT

#

## Tags

None found

### DUPLICATED_REFERENCE_IN_SIGNED_ELEMENTS

    DUPLICATED_REFERENCE_IN_SIGNED_ELEMENTS

#

## Tags

None found

### UNEXPECTED_SIGNED_ELEMENTS

    UNEXPECTED_SIGNED_ELEMENTS

#

## Tags

None found

### WRONG_NUMBER_OF_SIGNATURES_IN_RESPONSE

    WRONG_NUMBER_OF_SIGNATURES_IN_RESPONSE

#

## Tags

None found

### WRONG_NUMBER_OF_SIGNATURES_IN_ASSERTION

    WRONG_NUMBER_OF_SIGNATURES_IN_ASSERTION

#

## Tags

None found

### INVALID_XML_FORMAT

    INVALID_XML_FORMAT

#

## Tags

None found

### WRONG_INRESPONSETO

    WRONG_INRESPONSETO

#

## Tags

None found

### NO_ENCRYPTED_ASSERTION

    NO_ENCRYPTED_ASSERTION

#

## Tags

None found

### NO_ENCRYPTED_NAMEID

    NO_ENCRYPTED_NAMEID

#

## Tags

None found

### MISSING_CONDITIONS

    MISSING_CONDITIONS

#

## Tags

None found

### ASSERTION_TOO_EARLY

    ASSERTION_TOO_EARLY

#

## Tags

None found

### ASSERTION_EXPIRED

    ASSERTION_EXPIRED

#

## Tags

None found

### WRONG_NUMBER_OF_AUTHSTATEMENTS

    WRONG_NUMBER_OF_AUTHSTATEMENTS

#

## Tags

None found

### NO_ATTRIBUTESTATEMENT

    NO_ATTRIBUTESTATEMENT

#

## Tags

None found

### ENCRYPTED_ATTRIBUTES

    ENCRYPTED_ATTRIBUTES

#

## Tags

None found

### WRONG_DESTINATION

    WRONG_DESTINATION

#

## Tags

None found

### EMPTY_DESTINATION

    EMPTY_DESTINATION

#

## Tags

None found

### WRONG_AUDIENCE

    WRONG_AUDIENCE

#

## Tags

None found

### ISSUER_MULTIPLE_IN_RESPONSE

    ISSUER_MULTIPLE_IN_RESPONSE

#

## Tags

None found

### ISSUER_NOT_FOUND_IN_ASSERTION

    ISSUER_NOT_FOUND_IN_ASSERTION

#

## Tags

None found

### WRONG_ISSUER

    WRONG_ISSUER

#

## Tags

None found

### SESSION_EXPIRED

    SESSION_EXPIRED

#

## Tags

None found

### WRONG_SUBJECTCONFIRMATION

    WRONG_SUBJECTCONFIRMATION

#

## Tags

None found

### NO_SIGNED_MESSAGE

    NO_SIGNED_MESSAGE

#

## Tags

None found

### NO_SIGNED_ASSERTION

    NO_SIGNED_ASSERTION

#

## Tags

None found

### NO_SIGNATURE_FOUND

    NO_SIGNATURE_FOUND

#

## Tags

None found

### KEYINFO_NOT_FOUND_IN_ENCRYPTED_DATA

    KEYINFO_NOT_FOUND_IN_ENCRYPTED_DATA

#

## Tags

None found

### CHILDREN_NODE_NOT_FOUND_IN_KEYINFO

    CHILDREN_NODE_NOT_FOUND_IN_KEYINFO

#

## Tags

None found

### UNSUPPORTED_RETRIEVAL_METHOD

    UNSUPPORTED_RETRIEVAL_METHOD

#

## Tags

None found

### NO_NAMEID

    NO_NAMEID

#

## Tags

None found

### EMPTY_NAMEID

    EMPTY_NAMEID

#

## Tags

None found

### SP_NAME_QUALIFIER_NAME_MISMATCH

    SP_NAME_QUALIFIER_NAME_MISMATCH

#

## Tags

None found

### DUPLICATED_ATTRIBUTE_NAME_FOUND

    DUPLICATED_ATTRIBUTE_NAME_FOUND

#

## Tags

None found

### INVALID_SIGNATURE

    INVALID_SIGNATURE

#

## Tags

None found

### WRONG_NUMBER_OF_SIGNATURES

    WRONG_NUMBER_OF_SIGNATURES

#

## Tags

None found

### RESPONSE_EXPIRED

    RESPONSE_EXPIRED

#

## Tags

None found

### UNEXPECTED_REFERENCE

    UNEXPECTED_REFERENCE

#

## Tags

None found

### NOT_SUPPORTED

    NOT_SUPPORTED

#

## Tags

None found

### KEY_ALGORITHM_ERROR

    KEY_ALGORITHM_ERROR

#

## Tags

None found

### MISSING_ENCRYPTED_ELEMENT

    MISSING_ENCRYPTED_ELEMENT

#

## Tags

None found

## Methods

### __construct()

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

Constructor

#### Parameters

string | $msg | Describes the error.
integer | $code | The code error (defined in the error class).
array|null | $args | Arguments used in the message that describes the error.

#

## Tags

None found

### Error.php