BotError
This error is thrown when middleware throws. It simply wraps the original error (accessible via the error
property), but also provides access to the respective context object that was processed while the error occurred.
Extends
ts
Error
Type Parameters
C
Constructors
ts
BotError(error: unknown, ctx: C);
Properties
error
ts
readonly error: unknown;
ctx
ts
readonly ctx: C;