TeamFoundationSqlResourceComponent.MapException Method (SqlException)

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 _
)
protected virtual void MapException(
    SqlException ex
)
protected:
virtual void MapException(
    SqlException^ ex
)
abstract MapException : 
        ex:SqlException -> unit  
override MapException : 
        ex:SqlException -> unit
protected function MapException(
    ex : SqlException
)

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