TeleverseException class
TeleverseException is thrown when an error occurs in the library.
- Implemented types
Constructors
- TeleverseException(String message, {String? description, StackTrace? stackTrace, required TeleverseExceptionType type})
- Constructs a new TeleverseException.
Properties
- description → String?
-
Optional description.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The error message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace
-
Optional stack trace.
final
- type → TeleverseExceptionType
-
The type of the exception.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of the exception.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fileDoesNotExist(
String path) → TeleverseException - Returns a list of invalid limit exceptions.
-
getMeRequestFailed(
Object err, StackTrace stack) → TeleverseException -
Exception thrown when the
getMe
request is failed when setting up a bot command. -
timeoutException(
StackTrace st, Duration timeout) → TeleverseException - Exception thrown when the timeout exception occurs.