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
ex
Type: System.Data.SqlClient.SqlExceptionThe SQL exception that occurred.
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.