UnsupportedTokenTypeBadRequestException Constructors

Definition

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class.

Overloads

UnsupportedTokenTypeBadRequestException()

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class.

UnsupportedTokenTypeBadRequestException(String)

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class with the specified token type.

UnsupportedTokenTypeBadRequestException(SerializationInfo, StreamingContext)

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class with serialized data.

UnsupportedTokenTypeBadRequestException(String, Exception)

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class with a specified error message and a reference to the inner exception that is the cause of this exception.

UnsupportedTokenTypeBadRequestException()

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class.

public:
 UnsupportedTokenTypeBadRequestException();
public UnsupportedTokenTypeBadRequestException ();
Public Sub New ()

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error. This message takes into account the current system culture.

The following table shows the initial property values for the new instance.

Property Value
InnerException null.
Message The localized error message string.
TokenType An empty string.

Applies to

UnsupportedTokenTypeBadRequestException(String)

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class with the specified token type.

public:
 UnsupportedTokenTypeBadRequestException(System::String ^ tokenType);
public UnsupportedTokenTypeBadRequestException (string tokenType);
new System.IdentityModel.UnsupportedTokenTypeBadRequestException : string -> System.IdentityModel.UnsupportedTokenTypeBadRequestException
Public Sub New (tokenType As String)

Parameters

tokenType
String

A string that contains the token type URI.

Remarks

This constructor initializes the TokenType property to the specified token type URI and the Message property of the new instance to a system-supplied message that describes the error. This message takes into account the current system culture.

The following table shows the initial property values for the new instance.

Property Value
InnerException null.
Message The localized error message string.
TokenType The specified token type URI.

Applies to

UnsupportedTokenTypeBadRequestException(SerializationInfo, StreamingContext)

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class with serialized data.

protected:
 UnsupportedTokenTypeBadRequestException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected UnsupportedTokenTypeBadRequestException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IdentityModel.UnsupportedTokenTypeBadRequestException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IdentityModel.UnsupportedTokenTypeBadRequestException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo object that holds the serialized object data.

context
StreamingContext

A StreamingContext object that contains the contextual information about the source or destination.

Exceptions

info is null.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

Applies to

UnsupportedTokenTypeBadRequestException(String, Exception)

Initializes a new instance of the UnsupportedTokenTypeBadRequestException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 UnsupportedTokenTypeBadRequestException(System::String ^ message, Exception ^ exception);
public UnsupportedTokenTypeBadRequestException (string message, Exception exception);
new System.IdentityModel.UnsupportedTokenTypeBadRequestException : string * Exception -> System.IdentityModel.UnsupportedTokenTypeBadRequestException
Public Sub New (message As String, exception As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

exception
Exception

The Exception that is the cause of the current exception. If the exception parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor.

The following table shows the initial property values for the new instance.

Property Value
InnerException The inner exception reference.
Message The error message string.
TokenType null.

Applies to