Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_menu/deps.deno.ts>BotError

Interactive menus for grammY.
Latest
class BotError
extends Error
Re-export
import { BotError } from "https://deno.land/x/grammy_menu@v1.3.0/deps.deno.ts";

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.

Constructors

new
BotError(error: unknown, ctx: C)

Type Parameters

optional
C extends Context = Context