Documentation ¶
Overview ¶
Package errormdl will help you catch error
Index ¶
- Constants
- Variables
- func CheckBool(orginalInput bool) bool
- func CheckBool1(orginalInput bool) bool
- func CheckBool2(orginalInput bool) bool
- func CheckBool3(orginalInput bool) bool
- func CheckErr(err error) error
- func CheckErr1(err error) error
- func CheckErr2(err error) error
- func CheckErr3(err error) error
- func CheckInt(len int) int
- func CheckInt1(len int) int
- func CheckInt2(len int) int
- type CoreError
Constants ¶
const ( // NOERROR - success Code NOERROR = 1000 // APPLICATION ERRORS // SJSONERROR - sjson helper error SJSONERROR = 1001 KEYNOTFOUND = 1002 CASTINGERROR = 1003 DATAINVALIDERROR = 1004 EMAILERROR = 1005 SERVICENOTFOUND = 1006 CONDITIONPARSEERROR = 1007 CONDITIONEVALERROR = 1008 NEXTFORMEVALERROR = 1009 // DB Errors MONGOERROR = 2001 MYSQLERROR = 2002 SQLSERVERERROR = 2003 GRAPHDBERROR = 2004 IMMUDBERROR = 2005 // CUSTOM Error EXPECTATIONFAILED = 4000 )
Variables ¶
var IsTestingNegetiveCaseOn bool
IsTestingNegetiveCaseOn mark this on if you want system cases to fail
var IsTestingNegetiveCaseOn1 bool
IsTestingNegetiveCaseOn1 mark this on if you want system cases to fail
var IsTestingNegetiveCaseOn2 bool
IsTestingNegetiveCaseOn2 mark this on if you want system cases to fail
var IsTestingNegetiveCaseOn3 bool
IsTestingNegetiveCaseOn3 mark this on if you want system cases to fail
var IsTestingNegetiveCaseOnCheckBool bool
IsTestingNegetiveCaseOn mark this on if you want system cases to fail
var IsTestingNegetiveCaseOnCheckBool1 bool
var IsTestingNegetiveCaseOnCheckBool2 bool
var IsTestingNegetiveCaseOnCheckBool3 bool
var IsTestingNegetiveCaseOnCheckInt bool
IsTestingNegetiveCaseOn mark this on if you want system cases to fail
var IsTestingNegetiveCaseOnCheckInt1 bool
var IsTestingNegetiveCaseOnCheckInt2 bool
Functions ¶
func CheckBool ¶
CheckBool will help checking bool condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn flag
func CheckBool1 ¶
func CheckBool2 ¶
func CheckBool3 ¶
func CheckErr ¶
CheckErr will help checking err condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn flag
func CheckErr1 ¶
CheckErr1 condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn1 flag
func CheckErr2 ¶
CheckErr2 condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn2 flag
func CheckErr3 ¶
CheckErr3 condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn3 flag
Types ¶
type CoreError ¶
type CoreError struct {
// contains filtered or unexported fields
}
CoreError is custom error
func WrapWithCode ¶
WrapWithCode Use wrapper error an not golang