Documentation ¶
Index ¶
- type Level
- type Typ
- func (e Typ) Error() string
- func (e Typ) IsBlank() bool
- func (e Typ) IsBlankNetworkError() bool
- func (e Typ) IsNotBlank() bool
- func (e Typ) IsNotBlankNetworkError() bool
- func (e Typ) String() string
- func (e Typ) Wrap(wrappedErr Typ) Typ
- func (e Typ) WrapsErrorLevel(errLvl Level, checkCurrErr bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Typ ¶
type Typ struct { Level Level Code string // LMID Message string // The actual error message HttpResponseCode int // In case we are trying to use this type for returning a network error DevMsg string // In case we are trying to use this type for returning a network error WrappedError *Typ // Any wrapped errors that we want to embed in this error ExtraData string // When we need to pass more values (errors are values (as said by Rob Pike)) }
var BlankError Typ
func NewNetworkError ¶
func (Typ) IsBlankNetworkError ¶
func (Typ) IsNotBlank ¶
func (Typ) IsNotBlankNetworkError ¶
Click to show internal directories.
Click to hide internal directories.