Share via


HandleExceptionArgs.Exception Property

Gets or sets the exception that will be processed and returned in the response.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Property Exception As Exception 
    Get 
    Set
'Usage
Dim instance As HandleExceptionArgs 
Dim value As Exception 

value = instance.Exception

instance.Exception = value
public Exception Exception { get; set; }
public:
property Exception^ Exception {
    Exception^ get ();
    void set (Exception^ value);
}
member Exception : Exception with get, set
function get Exception () : Exception 
function set Exception (value : Exception)

Property Value

Type: System.Exception
The exception that will be processed and returned in the response.

Remarks

If the exception is a DataServiceException, the message of the exception will always be returned to the client, regardless of the UseVerboseErrors value. If UseVerboseErrors is true, the inner exceptions will also be returned to the client; otherwise only the DataServiceException message will be returned.

See Also

Reference

HandleExceptionArgs Class

System.Data.Services Namespace