Documentation ¶
Index ¶
- type ErrorHandler
- type UsecaseErrorWrapper
- func (h *UsecaseErrorWrapper) IsNotFoundError(err error) bool
- func (h *UsecaseErrorWrapper) WrapErrorEntityFailed(err error, entityName string, entityData any) error
- func (h *UsecaseErrorWrapper) WrapErrorEntityNotFoundOrFailed(err error, entityName string, entityData any) error
- func (h *UsecaseErrorWrapper) WrapErrorFailed(err error, source string) error
- func (h *UsecaseErrorWrapper) WrapErrorNotFoundOrFailed(err error, source string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler struct{}
ErrorHandler - comment struct.
func NewErrorHandler ¶
func NewErrorHandler() *ErrorHandler
NewErrorHandler - создаёт объект ErrorHandler.
type UsecaseErrorWrapper ¶
type UsecaseErrorWrapper struct{}
UsecaseErrorWrapper - comment struct.
func NewUsecaseErrorWrapper ¶
func NewUsecaseErrorWrapper() *UsecaseErrorWrapper
NewUsecaseErrorWrapper - создаёт объект UsecaseErrorWrapper.
func (*UsecaseErrorWrapper) IsNotFoundError ¶
func (h *UsecaseErrorWrapper) IsNotFoundError(err error) bool
IsNotFoundError - comment method.
func (*UsecaseErrorWrapper) WrapErrorEntityFailed ¶
func (h *UsecaseErrorWrapper) WrapErrorEntityFailed(err error, entityName string, entityData any) error
WrapErrorEntityFailed - comment method.
func (*UsecaseErrorWrapper) WrapErrorEntityNotFoundOrFailed ¶
func (h *UsecaseErrorWrapper) WrapErrorEntityNotFoundOrFailed(err error, entityName string, entityData any) error
WrapErrorEntityNotFoundOrFailed - comment method.
func (*UsecaseErrorWrapper) WrapErrorFailed ¶
func (h *UsecaseErrorWrapper) WrapErrorFailed(err error, source string) error
WrapErrorFailed - comment method.
func (*UsecaseErrorWrapper) WrapErrorNotFoundOrFailed ¶
func (h *UsecaseErrorWrapper) WrapErrorNotFoundOrFailed(err error, source string) error
WrapErrorNotFoundOrFailed - comment method.
Click to show internal directories.
Click to hide internal directories.