Documentation
¶
Overview ¶
Package msg provides some common messages. Initially (at least) these are error messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstError ¶ added in v1.31.0
type ConstError string
ConstError defines an Error type that can be a constant because it's really just a string.
func (ConstError) Error ¶ added in v1.31.0
func (ce ConstError) Error() string
type ErrBlocked ¶
type ErrBlocked struct { // Optional name of deprecated function or method. Name string }
ErrBlocked is a custom error representing a blocked function or method.
func (*ErrBlocked) Error ¶
func (b *ErrBlocked) Error() string
Error implements the predefined error interface.
func (*ErrBlocked) Is ¶ added in v1.30.0
func (b *ErrBlocked) Is(target error) bool
Is determines if the error is or contains the target error.
type ErrDeprecated ¶
type ErrDeprecated struct { // Optional name of deprecated function or method. Name string }
ErrDeprecated is a custom error representing a deprecated function or method.
func (*ErrDeprecated) Error ¶
func (d *ErrDeprecated) Error() string
Error implements the predefined error interface.
func (*ErrDeprecated) Is ¶ added in v1.30.0
func (d *ErrDeprecated) Is(target error) bool
Is determines if the error is or contains the target error.
type ErrNotImplemented ¶
type ErrNotImplemented struct { // Optional name of unimplemented function or method. Name string }
ErrNotImplemented is a custom error representing an unimplemented function or method.
func (*ErrNotImplemented) Error ¶
func (ni *ErrNotImplemented) Error() string
Error implements the predefined error interface.
func (*ErrNotImplemented) Is ¶ added in v1.30.0
func (ni *ErrNotImplemented) Is(target error) bool
Is determines if the error is or contains the target error.
type ErrNotOverridden ¶ added in v1.38.0
type ErrNotOverridden struct { // Optional name of function or method to be overridden. Name string }
ErrNotOverridden is a custom error representing a method that must be overridden.
func (*ErrNotOverridden) Error ¶ added in v1.38.0
func (ni *ErrNotOverridden) Error() string
Error implements the predefined error interface.
func (*ErrNotOverridden) Is ¶ added in v1.38.0
func (ni *ErrNotOverridden) Is(target error) bool
Is determines if the error is or contains the target error.