Documentation ¶
Index ¶
- func AsError[T error](err error) *T
- type APIErrorTypeHandler
- type DomainErrorTypeHandler
- type ErrorResponseManager
- type ErrorTypeResponseHandler
- func NewAPIErrorTypeHandler() ErrorTypeResponseHandler
- func NewDomainErrorTypeHandler() ErrorTypeResponseHandler
- func NewValidationErrorTypeHandler() ErrorTypeResponseHandler
- func NewValidationFieldErrorTypeHandler() ErrorTypeResponseHandler
- func NewValidationGoPlaygroundErrorHandler() ErrorTypeResponseHandler
- type ValidationErrorTypeHandler
- type ValidationFieldErrorTypeHandler
- type ValidationGoPlaygroundErrorHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIErrorTypeHandler ¶
type APIErrorTypeHandler struct{}
func (APIErrorTypeHandler) Handle ¶
func (a APIErrorTypeHandler) Handle(err error) *response.APIResponseEnvelope
func (APIErrorTypeHandler) IsSupported ¶
func (a APIErrorTypeHandler) IsSupported(err error) bool
func (APIErrorTypeHandler) Priority ¶
func (a APIErrorTypeHandler) Priority() int
type DomainErrorTypeHandler ¶
type DomainErrorTypeHandler struct{}
func (DomainErrorTypeHandler) Handle ¶
func (d DomainErrorTypeHandler) Handle(err error) *response.APIResponseEnvelope
func (DomainErrorTypeHandler) IsSupported ¶
func (d DomainErrorTypeHandler) IsSupported(err error) bool
func (DomainErrorTypeHandler) Priority ¶
func (d DomainErrorTypeHandler) Priority() int
type ErrorResponseManager ¶
type ErrorResponseManager interface {
Handle(err error) *response.APIResponseEnvelope
}
func NewErrorResponseManager ¶
func NewErrorResponseManager(errorTypeHandlers []ErrorTypeResponseHandler) ErrorResponseManager
type ErrorTypeResponseHandler ¶
type ErrorTypeResponseHandler interface { IsSupported(err error) bool Handle(err error) *response.APIResponseEnvelope Priority() int }
func NewAPIErrorTypeHandler ¶
func NewAPIErrorTypeHandler() ErrorTypeResponseHandler
func NewDomainErrorTypeHandler ¶
func NewDomainErrorTypeHandler() ErrorTypeResponseHandler
func NewValidationErrorTypeHandler ¶
func NewValidationErrorTypeHandler() ErrorTypeResponseHandler
func NewValidationFieldErrorTypeHandler ¶
func NewValidationFieldErrorTypeHandler() ErrorTypeResponseHandler
func NewValidationGoPlaygroundErrorHandler ¶
func NewValidationGoPlaygroundErrorHandler() ErrorTypeResponseHandler
type ValidationErrorTypeHandler ¶
type ValidationErrorTypeHandler struct{}
func (ValidationErrorTypeHandler) Handle ¶
func (a ValidationErrorTypeHandler) Handle(err error) *response.APIResponseEnvelope
func (ValidationErrorTypeHandler) IsSupported ¶
func (a ValidationErrorTypeHandler) IsSupported(err error) bool
func (ValidationErrorTypeHandler) Priority ¶
func (a ValidationErrorTypeHandler) Priority() int
type ValidationFieldErrorTypeHandler ¶
type ValidationFieldErrorTypeHandler struct{}
func (ValidationFieldErrorTypeHandler) Handle ¶
func (a ValidationFieldErrorTypeHandler) Handle(err error) *response.APIResponseEnvelope
func (ValidationFieldErrorTypeHandler) IsSupported ¶
func (a ValidationFieldErrorTypeHandler) IsSupported(err error) bool
func (ValidationFieldErrorTypeHandler) Priority ¶
func (a ValidationFieldErrorTypeHandler) Priority() int
type ValidationGoPlaygroundErrorHandler ¶
type ValidationGoPlaygroundErrorHandler struct{}
func (ValidationGoPlaygroundErrorHandler) Handle ¶
func (v ValidationGoPlaygroundErrorHandler) Handle(err error) *response.APIResponseEnvelope
func (ValidationGoPlaygroundErrorHandler) IsSupported ¶
func (v ValidationGoPlaygroundErrorHandler) IsSupported(err error) bool
func (ValidationGoPlaygroundErrorHandler) Priority ¶
func (v ValidationGoPlaygroundErrorHandler) Priority() int
Click to show internal directories.
Click to hide internal directories.