Table of Contents

Class Exception

Namespace
PHCDataLayer.DbUtils.SQL
Assembly
PHCDataLayer.dll
public class Exception
Exception

Methods

GetConstraintItem(string)

TODO: know the MsSqlException error number for Constraint

public static string GetConstraintItem(string message)

Parameters

Nome Tipo Descrição
message string

Returns

string

GetDuplicateKeyItem(string)

public static string GetDuplicateKeyItem(string message)

Parameters

Nome Tipo Descrição
message string

Returns

string

GetErrorMsgs(IEnumerable<DbCmd>)

public static List<string> GetErrorMsgs(IEnumerable<DbCmd> dbCommands)

Parameters

Nome Tipo Descrição
dbCommands IEnumerable<DbCmd>

Returns

List<string>

GetErrorType(int)

public static Exception.SqlErrorCodes GetErrorType(int number)

Parameters

Nome Tipo Descrição
number int

Returns

Exception.SqlErrorCodes

GetPrimaryKeyItem(string)

public static string GetPrimaryKeyItem(string message)

Parameters

Nome Tipo Descrição
message string

Returns

string

IsArithmeticOverflow(int)

public static bool IsArithmeticOverflow(int number)

Parameters

Nome Tipo Descrição
number int

Returns

bool

IsConstraint(int)

public static bool IsConstraint(int number)

Parameters

Nome Tipo Descrição
number int

Returns

bool

IsDuplicateKey(int)

public static bool IsDuplicateKey(int number)

Parameters

Nome Tipo Descrição
number int

Returns

bool

IsPrimaryKey(int)

public static bool IsPrimaryKey(int number)

Parameters

Nome Tipo Descrição
number int

Returns

bool

IsSqlDateTimeOverflow(int)

public static bool IsSqlDateTimeOverflow(int number)

Parameters

Nome Tipo Descrição
number int

Returns

bool