TeamFoundationSqlResourceComponent.MapException Method (SqlException, QueryExecutionState)
Map a SQL exception into an application-specific exception, if it is possible. Otherwise, the exception is reported using Watson.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Protected Overridable Sub MapException ( _
ex As SqlException, _
queryState As QueryExecutionState _
)
protected virtual void MapException(
SqlException ex,
QueryExecutionState queryState
)
protected:
virtual void MapException(
SqlException^ ex,
QueryExecutionState queryState
)
abstract MapException :
ex:SqlException *
queryState:QueryExecutionState -> unit
override MapException :
ex:SqlException *
queryState:QueryExecutionState -> unit
protected function MapException(
ex : SqlException,
queryState : QueryExecutionState
)
Parameters
ex
Type: System.Data.SqlClient.SqlExceptionThe SQL exception that occurred.
queryState
Type: Microsoft.TeamFoundation.Framework.Server.QueryExecutionStateCurrent state of the query that is used to determine outcome.
Remarks
Uses reflection to construct the application-specific exception.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.