使用错误消息和内部异常创建 ODataErrorException 类的新实例。
命名空间: Microsoft.Data.OData
程序集: Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)
语法
声明
Public Sub New ( _
message As String, _
innerException As Exception _
)
用法
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
)
参数
- message
类型:System.String
此异常的纯文本错误消息。
- innerException
类型:System.Exception
引发此异常的内部异常。
注释
Error 属性将使用空 ODataError 实例初始化。