Documentation ¶
Index ¶
- type Error
- func (err Error) Code() string
- func (err Error) Details() string
- func (err Error) Error() string
- func (err Error) ErrorDocument(s *jsoniter.Stream)
- func (err Error) Expect() string
- func (err Error) JsonEncode(s *jsoniter.Stream)
- func (err Error) Location() string
- func (err Error) Message() string
- func (err *Error) Reset()
- func (err Error) Status() int
- func (err Error) String() string
- type ErrorDocumentor
- type Errors
- func (errs *Errors) Append(err Error)
- func (errs Errors) Error() string
- func (errs Errors) ErrorDocument(s *jsoniter.Stream)
- func (errs Errors) HasError() bool
- func (errs Errors) JsonEncode(s *jsoniter.Stream)
- func (errs Errors) Len() int
- func (errs *Errors) Merge(errors Errors)
- func (errs *Errors) Reset()
- func (errs Errors) Status() int
- func (errs Errors) String() string
- type FrozenError
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 (Error) ErrorDocument ¶
func (Error) JsonEncode ¶
type ErrorDocumentor ¶
type FrozenError ¶
type FrozenError interface { ErrorDocumentor Explained(location string, expect ...string) Error Detailed(details string, location ...string) Error }
An immutable error used for spawning new "explained" errors.
func NewFrozenError ¶
func NewFrozenError(code string, message string, statusCode ...int) FrozenError
Create an immutable ("frozen") error that is used for spawning new "explained" errors.
Click to show internal directories.
Click to hide internal directories.