IResultInfo.Exception Property

Definition

Gets the exception that was thrown while executing the batch.

public:
 property Exception ^ Exception { Exception ^ get(); };
public Exception Exception { get; }
member this.Exception : Exception
Public ReadOnly Property Exception As Exception

Property Value

An Exception value containing the exception that was thrown while executing the Transact-SQL batch, or null if no exception was thrown.

Applies to