Del via


ODataErrorException Constructors

Definition

Overloads

ODataErrorException()

Creates a new instance of the ODataErrorException class with default values.

ODataErrorException(ODataError)

Creates a new instance of the ODataErrorException class with an ODataError object.

ODataErrorException(String)

Creates a new instance of the ODataErrorException class with an error message.

ODataErrorException(String, ODataError)

Creates a new instance of the ODataErrorException class with an error message and an ODataError object.

ODataErrorException(String, Exception)

Creates a new instance of the ODataErrorException class with an error message and an inner exception.

ODataErrorException(String, Exception, ODataError)

Creates a new instance of the ODataErrorException class with an error message, an inner exception, and an ODataError object.

ODataErrorException()

Creates a new instance of the ODataErrorException class with default values.

public ODataErrorException ();
Public Sub New ()

Remarks

The Message property is initialized to a system-supplied message that describes the error. This message takes into account the current system culture. The Error property will be initialized with an empty ODataError instance.

Applies to

ODataErrorException(ODataError)

Creates a new instance of the ODataErrorException class with an ODataError object.

public ODataErrorException (Microsoft.OData.ODataError error);
new Microsoft.OData.ODataErrorException : Microsoft.OData.ODataError -> Microsoft.OData.ODataErrorException
Public Sub New (error As ODataError)

Parameters

error
ODataError

The ODataError instance representing the error read from the payload.

Remarks

The Message property is initialized to a system-supplied message that describes the error. This message takes into account the current system culture.

Applies to

ODataErrorException(String)

Creates a new instance of the ODataErrorException class with an error message.

public ODataErrorException (string message);
new Microsoft.OData.ODataErrorException : string -> Microsoft.OData.ODataErrorException
Public Sub New (message As String)

Parameters

message
String

The plain text error message for this exception.

Remarks

The Error property will be initialized with an empty ODataError instance.

Applies to

ODataErrorException(String, ODataError)

Creates a new instance of the ODataErrorException class with an error message and an ODataError object.

public ODataErrorException (string message, Microsoft.OData.ODataError error);
new Microsoft.OData.ODataErrorException : string * Microsoft.OData.ODataError -> Microsoft.OData.ODataErrorException
Public Sub New (message As String, error As ODataError)

Parameters

message
String

The plain text error message for this exception.

error
ODataError

The ODataError instance representing the error read from the payload.

Applies to

ODataErrorException(String, Exception)

Creates a new instance of the ODataErrorException class with an error message and an inner exception.

public ODataErrorException (string message, Exception innerException);
new Microsoft.OData.ODataErrorException : string * Exception -> Microsoft.OData.ODataErrorException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The plain text error message for this exception.

innerException
Exception

The inner exception that is the cause of this exception to be thrown.

Remarks

The Error property will be initialized with an empty ODataError instance.

Applies to

ODataErrorException(String, Exception, ODataError)

Creates a new instance of the ODataErrorException class with an error message, an inner exception, and an ODataError object.

public ODataErrorException (string message, Exception innerException, Microsoft.OData.ODataError error);
new Microsoft.OData.ODataErrorException : string * Exception * Microsoft.OData.ODataError -> Microsoft.OData.ODataErrorException
Public Sub New (message As String, innerException As Exception, error As ODataError)

Parameters

message
String

The plain text error message for this exception.

innerException
Exception

The inner exception that is the cause of this exception to be thrown.

error
ODataError

The ODataError instance representing the error read from the payload.

Applies to