ODataErrorException Constructor (String, Exception)
Creates a new instance of the ODataErrorException class with an error message and an inner exception.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
innerException As Exception _
)
'Usage
Dim message As String
Dim innerException As Exception
Dim instance As New ODataErrorException(message, _
innerException)
public ODataErrorException(
string message,
Exception innerException
)
public:
ODataErrorException(
String^ message,
Exception^ innerException
)
new :
message:string *
innerException:Exception -> ODataErrorException
public function ODataErrorException(
message : String,
innerException : Exception
)
Parameters
- message
Type: System.String
The plain text error message for this exception.
- innerException
Type: System.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.