Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidInput = NewCustomError(ErrTypeInvalidInput, "") ErrNotFound = NewCustomError(ErrTypeNotFound, "") ErrConflict = NewCustomError(ErrTypeConflict, "") ErrProvider = NewCustomError(ErrTypeProvider, "") ErrUnsupported = NewCustomError(ErrTypeUnsupported, "") ErrInternal = NewCustomError(ErrTypeInternal, "") )
Functions ¶
Types ¶
type CustomError ¶
func NewCustomError ¶
func NewCustomError(t ErrorType, message string) *CustomError
func (*CustomError) Error ¶
func (e *CustomError) Error() string
func (*CustomError) GetStatus ¶
func (e *CustomError) GetStatus() int
func (*CustomError) Is ¶
func (e *CustomError) Is(target error) bool
Click to show internal directories.
Click to hide internal directories.