C# Class NLite.Data.Exceptions.ExceptionHelper

Afficher le fichier Open project: netcasewqs/elinq

Méthodes publiques

Méthode Description
Convert ( ISqlLog log, ISQLExceptionConverter converter, DbExceptionContextInfo exceptionContextInfo ) : Exception
Convert ( ISqlLog log, ISQLExceptionConverter converter, DbExceptionContextInfo exceptionContextInfo, object parameterValues, NamedParameter namedParameters ) : Exception
ExtendMessage ( string message, string sql, object entity = null, object parameterValues = null, NamedParameter parameters = null ) : string
ExtractDbException ( Exception sqlException ) : DbException
TryGetActualSqlQuery ( Exception sqle, string sql ) : string

Method Details

Convert() public static méthode

public static Convert ( ISqlLog log, ISQLExceptionConverter converter, DbExceptionContextInfo exceptionContextInfo ) : Exception
log ISqlLog
converter ISQLExceptionConverter
exceptionContextInfo DbExceptionContextInfo
Résultat System.Exception

Convert() public static méthode

public static Convert ( ISqlLog log, ISQLExceptionConverter converter, DbExceptionContextInfo exceptionContextInfo, object parameterValues, NamedParameter namedParameters ) : Exception
log ISqlLog
converter ISQLExceptionConverter
exceptionContextInfo DbExceptionContextInfo
parameterValues object
namedParameters NLite.Data.Common.NamedParameter
Résultat System.Exception

ExtendMessage() public static méthode

public static ExtendMessage ( string message, string sql, object entity = null, object parameterValues = null, NamedParameter parameters = null ) : string
message string
sql string
entity object
parameterValues object
parameters NLite.Data.Common.NamedParameter
Résultat string

ExtractDbException() public static méthode

public static ExtractDbException ( Exception sqlException ) : DbException
sqlException System.Exception
Résultat System.Data.Common.DbException

TryGetActualSqlQuery() public static méthode

public static TryGetActualSqlQuery ( Exception sqle, string sql ) : string
sqle System.Exception
sql string
Résultat string