Documentation
¶
Index ¶
- type Error
- func Assert(expect string, actual string, nativeErr ...error) *Error
- func Of(t Type, code string, message string, nativeErr ...error) *Error
- func Sys(message string, nativeErr ...error) *Error
- func Verify(message string, nativeErr ...error) *Error
- func VerifyCode(code int, message string, nativeErr ...error) *Error
- type Template
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Type Type `bson:"type" json:"type"`
Code string `bson:"code" json:"code"`
Message string `bson:"message" json:"message"`
Err error `bson:"-" json:"-"` // Native error
}
func (*Error) IsApplication ¶
Click to show internal directories.
Click to hide internal directories.