Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppError ¶
type AppError struct {
// contains filtered or unexported fields
}
type AppErrorFactory ¶
type AppErrorFactory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(id string, kind ErrorKind, message string) *AppErrorFactory
func (*AppErrorFactory) Caller ¶
func (e *AppErrorFactory) Caller(skip int) *AppErrorFactory
func (*AppErrorFactory) New ¶
func (e *AppErrorFactory) New(args ...any) *AppError
type ErrorKind ¶
type ErrorKind int
const ( ErrorIdInternal = "errInternal" ErrorKindInternal ErrorKind = iota // внутренняя ошибка + traceId + call stack ErrorKindInternalNotice // внутреннее предупреждение, которое, в некоторых случаях, может стать поводом для реальной ошибки ErrorKindSystem // системная ошибка + traceId + call stack ErrorKindUser // пользовательская ошибка )
type FieldError ¶
type FieldErrorList ¶
type FieldErrorList []FieldError
func NewList ¶
func NewList(items ...FieldError) *FieldErrorList
func NewListWith ¶
func NewListWith(fieldId string, err error) *FieldErrorList
func (*FieldErrorList) Add ¶
func (e *FieldErrorList) Add(fieldId string, err error)
func (*FieldErrorList) Error ¶
func (e *FieldErrorList) Error() string
Click to show internal directories.
Click to hide internal directories.