Freigeben über


ODataErrorException-Konstruktor (String, Exception)

Erstellt eine neue Instanz der ODataErrorException-Klasse mit einer Fehlermeldung und einer internen Ausnahme.

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
)

Parameter

  • message
    Typ: System.String
    Die Nur-Text-Fehlermeldung für diese Ausnahme.
  • innerException
    Typ: System.Exception
    Die interne Ausnahme, die diese ausgelöste Ausnahme verursacht hat.

Hinweise

Die Fehlereigenschaft wird mit einer leeren ODataError-Instanz initialisiert.

Siehe auch

Verweis

ODataErrorException Klasse

ODataErrorException-Überladung

Microsoft.Data.OData-Namespace