Documentation
¶
Overview ¶
Package errhandler provides the default error handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandError ¶
CommandError returns the logger function used for errors.Log. It logs the error using the passed *zap.SugaredLogger, and extracts the assigned *sentry.Hub and *zap.SugaredLogger from the context using sentryadam.GetHub.
func Gateway ¶
func Gateway(l *zap.SugaredLogger, h *sentry.Hub) func(error)
Gateway returns the error handler function used for the bot.Options.GatwayErrorHandler.
func StateError ¶
func StateError(l *zap.SugaredLogger, h *sentry.Hub) func(error)
StateError returns the logger function used for the bot.Option.StateErrorHandler.
func StatePanic ¶
func StatePanic(l *zap.SugaredLogger, h *sentry.Hub) func(interface{})
StatePanic returns the logger function used for the bot.Option.StatePanicHandler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.