HandleExceptionArgs.Exception 属性

定义

获取或设置将在响应中处理和返回的异常。

public:
 property Exception ^ Exception { Exception ^ get(); void set(Exception ^ value); };
public Exception Exception { get; set; }
member this.Exception : Exception with get, set
Public Property Exception As Exception

属性值

将在响应中处理和返回的异常。

注解

如果异常是一个 DataServiceException,则无论值如何 UseVerboseErrors ,异常的消息都将始终返回给客户端。 如果 UseVerboseErrors 为 true,则内部异常也会返回到客户端;否则只会 DataServiceException 返回消息。

适用于