C# Class NLite.Data.Exceptions.ExceptionHelper

Mostrar archivo Open project: netcasewqs/elinq

Public Methods

Method 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 method

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

Convert() public static method

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
return System.Exception

ExtendMessage() public static method

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
return string

ExtractDbException() public static method

public static ExtractDbException ( Exception sqlException ) : DbException
sqlException System.Exception
return System.Data.Common.DbException

TryGetActualSqlQuery() public static method

public static TryGetActualSqlQuery ( Exception sqle, string sql ) : string
sqle System.Exception
sql string
return string