Documentation ¶
Index ¶
- func Version() string
- type ErrorManager
- type ManagedError
- func ManagedHttpErrors() []ManagedError
- func ManagedInternalErrors() []ManagedError
- func ManagedStorageErrors() []ManagedError
- func ManagedUseCaseErrors() []ManagedError
- func WrapProto(proto *mrerr.ProtoAppError) ManagedError
- func WrapProtoExtra(proto *mrerr.ProtoAppError, withCaller, withOnCreated bool) ManagedError
- func WrapProtoExtraDisabled(proto *mrerr.ProtoAppError) ManagedError
- func WrapProtoExtraEnabled(proto *mrerr.ProtoAppError) ManagedError
- func WrapProtoList(protos []*mrerr.ProtoAppError) []ManagedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorManager ¶
type ErrorManager struct {
// contains filtered or unexported fields
}
ErrorManager - comment struct.
func NewErrorManager ¶
func NewErrorManager(extra mrerr.ProtoExtra) *ErrorManager
NewErrorManager - создаёт объект ErrorManager.
func (*ErrorManager) Register ¶
func (e *ErrorManager) Register(item ManagedError)
Register - comment method.
func (*ErrorManager) RegisterList ¶
func (e *ErrorManager) RegisterList(items []ManagedError)
RegisterList - comment method.
type ManagedError ¶
type ManagedError struct { Err *mrerr.ProtoAppError WithCaller bool WithOnCreated bool }
ManagedError - comment struct.
func ManagedInternalErrors ¶
func ManagedInternalErrors() []ManagedError
ManagedInternalErrors - comment func.
func ManagedStorageErrors ¶
func ManagedStorageErrors() []ManagedError
ManagedStorageErrors - comment func.
func ManagedUseCaseErrors ¶
func ManagedUseCaseErrors() []ManagedError
ManagedUseCaseErrors - comment func.
func WrapProtoExtra ¶
func WrapProtoExtra(proto *mrerr.ProtoAppError, withCaller, withOnCreated bool) ManagedError
WrapProtoExtra - comment func.
func WrapProtoExtraDisabled ¶
func WrapProtoExtraDisabled(proto *mrerr.ProtoAppError) ManagedError
WrapProtoExtraDisabled - comment func.
func WrapProtoExtraEnabled ¶
func WrapProtoExtraEnabled(proto *mrerr.ProtoAppError) ManagedError
WrapProtoExtraEnabled - comment func.
func WrapProtoList ¶
func WrapProtoList(protos []*mrerr.ProtoAppError) []ManagedError
WrapProtoList - comment func.
Click to show internal directories.
Click to hide internal directories.