Documentation ¶
Index ¶
- func Is(err error, target error) bool
- func WithMessage(err error, message string) error
- type Error
- func Convert(err error) *Error
- func Forbidden(format string, args ...interface{}) *Error
- func InternalServer(format string, args ...interface{}) *Error
- func InvalidParam(format string, args ...interface{}) *Error
- func New(code int, msg string) *Error
- func NotFound(format string, args ...interface{}) *Error
- func Timeout(format string, args ...interface{}) *Error
- func Unauthorized(format string, args ...interface{}) *Error
- func Unknown(format string, args ...interface{}) *Error
- type Frame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMessage ¶ added in v1.1.0
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func InternalServer ¶
func InvalidParam ¶ added in v1.1.0
func Unauthorized ¶
func (*Error) WithMessage ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.