TelegramException class
HttpException is thrown when the HTTP request fails.
- Implemented types
Constructors
- TelegramException(int code, {String? description, ResponseParameters? parameters, StackTrace? stackTrace})
- Constructs a new TelegramException.
-
TelegramException.fromJson(Map<
String, dynamic> json, {StackTrace? stack}) -
Constructs a new TelegramException from a JSON object.
factory
Properties
- code → int
-
The HTTP status code.
final
- description → String?
-
Optional description.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClientException → bool
-
Returns true if the exception is a client exception.
no setter
- isServerExeption → bool
-
Returns true if the exception is a server exception.
no setter
- parameters ↔ ResponseParameters?
-
Response Parameters
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace
-
Stack trace of the exception.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toLongPollingException(
StackTrace stackTrace) → LongPollingException - Converts this exception to a LongPollingException.
-
toString(
) → String -
Returns a string representation of the exception.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited