Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func ErrorHandler(logger zerolog.Logger) func(err error) *objects.InteractionResponse
Types ¶
type CommandError ¶
CommandError is an error that is returned when a command fails
type ErrCommandNotAllowed ¶
type ErrCommandNotAllowed struct {
// contains filtered or unexported fields
}
ErrCommandNotAllowed is an error that is returned when the running user is not currently allowed to run a command
func NewErrCommandNotAllowed ¶
func NewErrCommandNotAllowed(command *router.Command) *ErrCommandNotAllowed
func (*ErrCommandNotAllowed) Command ¶
func (e *ErrCommandNotAllowed) Command() string
func (*ErrCommandNotAllowed) Error ¶
func (e *ErrCommandNotAllowed) Error() string
type ErrCommandNotImplemented ¶
type ErrCommandNotImplemented struct {
// contains filtered or unexported fields
}
ErrCommandNotImplemented is an error that is returned when a command is not implemented
func NewErrCommandNotImplemented ¶
func NewErrCommandNotImplemented(command *router.Command) *ErrCommandNotImplemented
func (*ErrCommandNotImplemented) Command ¶
func (e *ErrCommandNotImplemented) Command() string
func (*ErrCommandNotImplemented) Error ¶
func (e *ErrCommandNotImplemented) Error() string
type ErrRuntime ¶
type ErrRuntime struct {
Value string
// contains filtered or unexported fields
}
ErrRuntime represents a generic runtime error
func NewErrRuntime ¶
func NewErrRuntime(command *router.Command, value string) *ErrRuntime
func (*ErrRuntime) Command ¶
func (e *ErrRuntime) Command() string
func (*ErrRuntime) Error ¶
func (e *ErrRuntime) Error() string
Click to show internal directories.
Click to hide internal directories.