Documentation
¶
Index ¶
- 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 NotFound(format string, args ...interface{}) *Error
- func Sprintf(code int, 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
- func WithMessage(err error, message string) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func InternalServer ¶
func InvalidParam ¶ added in v1.1.0
func Unauthorized ¶
func WithMessage ¶ added in v1.1.0
func (*Error) WithMessage ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.