Partager via


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

Remarks

Uses reflection to construct the application-specific exception.

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

MapException Overload

Microsoft.TeamFoundation.Framework.Server Namespace