Class SAMLErrorStatusException
The exception that is thrown when a SAML error status is returned in a response message.
Inherited Members
Namespace: ComponentSpace.SAML2.Exceptions
Assembly: ComponentSpace.Saml2.dll
Syntax
[Serializable]
public class SAMLErrorStatusException : SAMLException, ISerializable, _Exception
Constructors
SAMLErrorStatusException(SerializationInfo, StreamingContext)
Initializes a new instance of the SAMLErrorStatusException class.
Declaration
public SAMLErrorStatusException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The serialization information. |
| StreamingContext | context | The streaming context. |
Remarks
This constructor supports serialization.
SAMLErrorStatusException(string, Status)
Initializes a new instance of the SAMLErrorStatusException class.
Declaration
public SAMLErrorStatusException(string message, Status status)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message. |
| Status | status | The error status. |
SAMLErrorStatusException(string, Exception, Status)
Initializes a new instance of the SAMLErrorStatusException class.
Declaration
public SAMLErrorStatusException(string message, Exception innerException, Status status)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message. |
| Exception | innerException | The inner exception. |
| Status | status | The error status. |
Properties
Status
Gets the status code.
Declaration
public Status Status { get; }
Property Value
| Type | Description |
|---|---|
| Status | The status code. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Serialize the SAML assertion.
Declaration
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The serialization information. |
| StreamingContext | context | The streaming context. |