BotError<CTX extends Context> constructor
BotError<CTX extends Context> ({
- required Object error,
- required StackTrace? stackTrace,
- CTX? ctx,
Creates a new bot error.
Parameters:
error: The original error that occurredstackTrace: The original stack tracectx: The context in which the error occurred
Implementation
BotError({
required this.error,
required super.stackTrace,
this.ctx,
}) : super(
'Bot error occurred: $error',
description: _buildDescription(error, ctx),
type: TeleverseExceptionType.requestFailed,
);