errormdl

package
v0.0.0-...-706786d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errormdl will help you catch error

Index

Constants

This section is empty.

Variables

View Source
var IsTestingNegetiveCaseOn bool

IsTestingNegetiveCaseOn mark this on if you want system cases to fail

View Source
var IsTestingNegetiveCaseOn1 bool

IsTestingNegetiveCaseOn1 mark this on if you want system cases to fail

View Source
var IsTestingNegetiveCaseOn2 bool

IsTestingNegetiveCaseOn2 mark this on if you want system cases to fail

View Source
var IsTestingNegetiveCaseOn3 bool

IsTestingNegetiveCaseOn3 mark this on if you want system cases to fail

Functions

func CheckBool

func CheckBool(orginalInput bool) bool

CheckBool will help checking bool condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn flag

func CheckErr

func CheckErr(err error) error

CheckErr will help checking err condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn flag

func CheckErr1

func CheckErr1(err error) error

CheckErr1 condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn1 flag

func CheckErr2

func CheckErr2(err error) error

CheckErr2 condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn2 flag

func CheckErr3

func CheckErr3(err error) error

CheckErr3 condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn3 flag

func CheckLen

func CheckLen(len int) int

CheckLen will help checking int condition for real as well as test cases. It can fail based on IsTestingNegetiveCaseOn flag

Types

type CoreError

type CoreError struct {
	// contains filtered or unexported fields
}

CoreError is custom error

func Wrap

func Wrap(msg string) *CoreError

Wrap Use wrapper error an not golang

func (*CoreError) Error

func (cerr *CoreError) Error() string

Error is interface method so that this will help compatibility with error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL