clarify RecoverFunc doc
This commit is contained in:
parent
b0f871462d
commit
7d236adca3
@ -110,11 +110,9 @@ type Config struct {
|
|||||||
// ioutil.Discard. For quick debugging, this could be set to os.Stdout.
|
// ioutil.Discard. For quick debugging, this could be set to os.Stdout.
|
||||||
Debugger io.Writer
|
Debugger io.Writer
|
||||||
// RecoverFunc is called when a handler throws a panic. If RecoverFunc is
|
// RecoverFunc is called when a handler throws a panic. If RecoverFunc is
|
||||||
// not set, the client will panic. identifier is generally going to be the
|
// set, the panic will be considered recovered, otherwise the client will
|
||||||
// callback ID. The file and line should point to the exact item that
|
// panic. Set this to DefaultRecoverHandler if you don't want the client
|
||||||
// threw a panic, and stack is the full stack trace of how RecoverFunc
|
// to panic, however you don't want to handle the panic yourself.
|
||||||
// caught it. Set this to DefaultRecoverHandler if you don't want the
|
|
||||||
// client to panic, however you don't want to handle the panic yourself.
|
|
||||||
// DefaultRecoverHandler will log the panic to Debugger or os.Stdout if
|
// DefaultRecoverHandler will log the panic to Debugger or os.Stdout if
|
||||||
// Debugger is unset.
|
// Debugger is unset.
|
||||||
RecoverFunc func(c *Client, e *HandlerError)
|
RecoverFunc func(c *Client, e *HandlerError)
|
||||||
|
Loading…
Reference in New Issue
Block a user