C# Класс NLite.Data.Exceptions.ExceptionHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Convert() публичный статический Метод

public static Convert ( ISqlLog log, ISQLExceptionConverter converter, DbExceptionContextInfo exceptionContextInfo ) : Exception
log ISqlLog
converter ISQLExceptionConverter
exceptionContextInfo DbExceptionContextInfo
Результат System.Exception

Convert() публичный статический Метод

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
Результат System.Exception

ExtendMessage() публичный статический Метод

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
Результат string

ExtractDbException() публичный статический Метод

public static ExtractDbException ( Exception sqlException ) : DbException
sqlException System.Exception
Результат System.Data.Common.DbException

TryGetActualSqlQuery() публичный статический Метод

public static TryGetActualSqlQuery ( Exception sqle, string sql ) : string
sqle System.Exception
sql string
Результат string