Documentation
¶
Index ¶
- 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 (e Error) Description() errawr.ErrorDescription
- func (e 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 (e Error) Metadata() errawr.Metadata
- func (e 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 ErrorArgument
- type ErrorArguments
- type ErrorDescription
- type ErrorDomain
- type ErrorDomainRepr
- type ErrorItems
- type ErrorMetadata
- type ErrorSection
- type ErrorSectionRepr
- type FormattedErrorDescription
- type HTTPErrorMetadata
- type HTTPErrorMetadataHeaders
- type UnformattedErrorDescription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Version uint64
ErrorDomain *ErrorDomain
ErrorSection *ErrorSection
ErrorCode string
ErrorTitle string
ErrorDescription *ErrorDescription
ErrorArguments ErrorArguments
ErrorItems ErrorItems
ErrorMetadata *ErrorMetadata
ErrorSensitivity errawr.ErrorSensitivity
// contains filtered or unexported fields
}
func (Error) ArgumentDescription ¶
func (Error) Description ¶
func (e Error) Description() errawr.ErrorDescription
func (Error) Domain ¶
func (e Error) Domain() errawr.ErrorDomain
func (*Error) FormattedDescription ¶
func (e *Error) FormattedDescription() errawr.ErrorDescription
func (Error) Section ¶
func (e 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 ErrorArgument ¶
type ErrorArgument struct {
Value interface{}
Description string
}
func NewErrorArgument ¶
func NewErrorArgument(value interface{}, description string) *ErrorArgument
func (*ErrorArgument) Set ¶
func (ea *ErrorArgument) Set(value interface{})
func (*ErrorArgument) Validate ¶
func (ea *ErrorArgument) Validate(validator string)
type ErrorArguments ¶
type ErrorArguments map[string]*ErrorArgument
type ErrorDescription ¶
type ErrorDomain ¶
type ErrorDomainRepr ¶
type ErrorDomainRepr struct {
Delegate *ErrorDomain
}
func (ErrorDomainRepr) Is ¶
func (edr ErrorDomainRepr) Is(key string) bool
func (ErrorDomainRepr) Key ¶
func (edr ErrorDomainRepr) Key() string
func (ErrorDomainRepr) Title ¶
func (edr ErrorDomainRepr) Title() string
type ErrorItems ¶
type ErrorMetadata ¶
type ErrorMetadata struct {
HTTPErrorMetadata *HTTPErrorMetadata
}
func (ErrorMetadata) HTTP ¶
func (em ErrorMetadata) HTTP() (errawr.HTTPMetadata, bool)
type ErrorSection ¶
type ErrorSectionRepr ¶
type ErrorSectionRepr struct {
Delegate *ErrorSection
}
func (ErrorSectionRepr) Is ¶
func (esr ErrorSectionRepr) Is(key string) bool
func (ErrorSectionRepr) Key ¶
func (esr ErrorSectionRepr) Key() string
func (ErrorSectionRepr) Title ¶
func (esr ErrorSectionRepr) 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 HTTPErrorMetadata ¶
type HTTPErrorMetadata struct {
ErrorStatus int
ErrorHeaders HTTPErrorMetadataHeaders
}
func (HTTPErrorMetadata) Headers ¶
func (hem HTTPErrorMetadata) Headers() http.Header
func (HTTPErrorMetadata) Status ¶
func (hem HTTPErrorMetadata) Status() int
type UnformattedErrorDescription ¶
type UnformattedErrorDescription struct {
// contains filtered or unexported fields
}
func (UnformattedErrorDescription) Friendly ¶
func (ued UnformattedErrorDescription) Friendly() string
func (UnformattedErrorDescription) Technical ¶
func (ued UnformattedErrorDescription) Technical() string
Click to show internal directories.
Click to hide internal directories.