BotError class

This object will be passed to the error handler. It contains the error and the stack trace.

Optionally, it can contain the context of the error.

Implemented types

Constructors

BotError(Object error, StackTrace stackTrace, {Context? ctx})
Creates a new BotError.
const

Properties

contextType Type
The Context Type
no setter
ctx Context?
The context of the error.
final
error Object
The error.
final
hasContext bool
A flag to simplify checking if the error has a context
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace
The stack trace.
final
update Update?
The associated update.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of the error.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited