Documentation ¶
Index ¶
- func AddParentArgument(argument, parent string) string
- func Append(left error, right error) error
- func As(err error, target any) bool
- func Is(err, target error) bool
- func MakeErrors(es ...error) error
- func New(text string) error
- func NewSizeOutOfRange(target string, min, max, size int64, real bool) error
- func ReplaceParentArgument(argument, parent string) string
- func Unwrap(err error) error
- type ArgumentMissing
- type ArgumentMissingOne
- type Err
- type ErrorGroup
- type Errors
- type Exist
- type HttpResponseError
- type InvalidArgument
- type InvalidModify
- type InvalidOperation
- type NotAvailable
- type NotFound
- type SizeOutOfRange
- type StringError
- type TaskFull
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddParentArgument ¶
func MakeErrors ¶
func NewSizeOutOfRange ¶
func ReplaceParentArgument ¶
Types ¶
type ArgumentMissing ¶
type ArgumentMissing struct {
Arguments []string
}
func NewArgumentMissing ¶
func NewArgumentMissing(arguments ...string) ArgumentMissing
func (ArgumentMissing) AddParentArgument ¶
func (e ArgumentMissing) AddParentArgument(parent string)
func (ArgumentMissing) Error ¶
func (e ArgumentMissing) Error() string
func (ArgumentMissing) ReplaceParentArgument ¶
func (e ArgumentMissing) ReplaceParentArgument(parent string)
type ArgumentMissingOne ¶
type ArgumentMissingOne struct {
Arguments []string
}
func NewArgumentMissingOne ¶
func NewArgumentMissingOne(arguments ...string) ArgumentMissingOne
func (ArgumentMissingOne) AddParentArgument ¶
func (e ArgumentMissingOne) AddParentArgument(parent string)
func (ArgumentMissingOne) Error ¶
func (e ArgumentMissingOne) Error() string
func (ArgumentMissingOne) ReplaceParentArgument ¶
func (e ArgumentMissingOne) ReplaceParentArgument(parent string)
type ErrorGroup ¶
type ErrorGroup interface {
Errors() []error
}
type HttpResponseError ¶
func (*HttpResponseError) Error ¶
func (e *HttpResponseError) Error() string
type InvalidArgument ¶
func NewInvalidArgument ¶
func NewInvalidArgument(argument string, err error) *InvalidArgument
func (*InvalidArgument) AddParentArgument ¶
func (e *InvalidArgument) AddParentArgument(parent string)
func (*InvalidArgument) Error ¶
func (e *InvalidArgument) Error() string
func (*InvalidArgument) ReplaceParentArgument ¶
func (e *InvalidArgument) ReplaceParentArgument(parent string)
type InvalidModify ¶
type InvalidModify struct {
Target string
}
func (*InvalidModify) Error ¶
func (e *InvalidModify) Error() string
type InvalidOperation ¶
type InvalidOperation struct {
Operation string
}
func NewInvalidOperation ¶
func NewInvalidOperation(operation string) InvalidOperation
func (InvalidOperation) Error ¶
func (e InvalidOperation) Error() string
type NotAvailable ¶
type NotAvailable struct {
Target string
}
func NewNotAvailable ¶
func NewNotAvailable(target string) NotAvailable
func (NotAvailable) Error ¶
func (e NotAvailable) Error() string
type SizeOutOfRange ¶
func (*SizeOutOfRange) Error ¶
func (e *SizeOutOfRange) Error() string
type StringError ¶
type StringError string
func (StringError) Error ¶
func (s StringError) Error() string
Click to show internal directories.
Click to hide internal directories.