Documentation
¶
Index ¶
- func NewError(err error) errawr.Error
- type Error
- func (e Error) ArgumentDescription(name string) string
- func (e Error) Arguments() map[string]interface{}
- func (e Error) Bug() errawr.Error
- func (e Error) Causes() []errawr.Error
- func (e Error) Code() string
- func (Error) Description() errawr.ErrorDescription
- func (Error) Domain() errawr.ErrorDomain
- func (e Error) Error() string
- func (e Error) FormattedDescription() errawr.ErrorDescription
- func (e Error) ID() string
- func (e Error) Is(id string) bool
- func (e *Error) IsBug() bool
- func (e Error) Items() (map[string]errawr.Error, bool)
- func (Error) Metadata() errawr.Metadata
- func (Error) Section() errawr.ErrorSection
- func (e Error) Sensitivity() errawr.ErrorSensitivity
- func (e Error) Title() string
- func (e Error) WithCause(cause error) errawr.Error
- func (e Error) WithSensitivity(sensitivity errawr.ErrorSensitivity) errawr.Error
- type ErrorDomain
- type ErrorMetadata
- type ErrorSection
- type FormattedErrorDescription
- type UnformattedErrorDescription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (Error) ArgumentDescription ¶
func (Error) Description ¶
func (Error) Description() errawr.ErrorDescription
func (Error) Domain ¶
func (Error) Domain() errawr.ErrorDomain
func (Error) FormattedDescription ¶
func (e Error) FormattedDescription() errawr.ErrorDescription
func (Error) Section ¶
func (Error) Section() errawr.ErrorSection
func (Error) Sensitivity ¶
func (e Error) Sensitivity() errawr.ErrorSensitivity
func (Error) WithSensitivity ¶
func (e Error) WithSensitivity(sensitivity errawr.ErrorSensitivity) errawr.Error
type ErrorDomain ¶
type ErrorDomain struct{}
func (ErrorDomain) Is ¶
func (ed ErrorDomain) Is(key string) bool
func (ErrorDomain) Key ¶
func (ErrorDomain) Key() string
func (ErrorDomain) Title ¶
func (ErrorDomain) Title() string
type ErrorMetadata ¶
type ErrorMetadata struct{}
func (ErrorMetadata) HTTP ¶
func (ErrorMetadata) HTTP() (errawr.HTTPMetadata, bool)
type ErrorSection ¶
type ErrorSection struct{}
func (ErrorSection) Is ¶
func (es ErrorSection) Is(key string) bool
func (ErrorSection) Key ¶
func (ErrorSection) Key() string
func (ErrorSection) Title ¶
func (ErrorSection) Title() string
type FormattedErrorDescription ¶
type FormattedErrorDescription struct {
// contains filtered or unexported fields
}
func (FormattedErrorDescription) Friendly ¶
func (fed FormattedErrorDescription) Friendly() string
func (FormattedErrorDescription) Technical ¶
func (fed FormattedErrorDescription) Technical() string
type UnformattedErrorDescription ¶
type UnformattedErrorDescription struct{}
func (UnformattedErrorDescription) Friendly ¶
func (UnformattedErrorDescription) Friendly() string
func (UnformattedErrorDescription) Technical ¶
func (UnformattedErrorDescription) Technical() string
Click to show internal directories.
Click to hide internal directories.