Documentation ¶
Index ¶
- func OrmError1062(err error) bool
- type Error
- func (this *Error) Cause() error
- func (this *Error) Code() string
- func (this *Error) Error() string
- func (this *Error) Message() string
- func (this *Error) SetCause(err error) *Error
- func (this *Error) SetCode(code string) *Error
- func (this *Error) SetMessage(format string, args ...interface{}) *Error
- func (this *Error) Status() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrmError1062 ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func NewBadRequest ¶
func NewBadRequest() *Error
func NewConflict ¶
func NewConflict() *Error
func NewForbidden ¶
func NewForbidden() *Error
func NewInternalServerError ¶
func NewInternalServerError() *Error
func NewMethodNotAllowed ¶
func NewMethodNotAllowed() *Error
func NewNotFound ¶
func NewNotFound() *Error
func NewUnauthorized ¶
func NewUnauthorized() *Error
func (*Error) SetMessage ¶
Click to show internal directories.
Click to hide internal directories.