TdError class

Inheritance

Constructors

TdError({required int code, required String message, dynamic extra, int? clientId})
An object of this type can be returned on every function call, in case of an error
const
TdError.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId int?
clientId client identifier
final
code int
code Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and must not be displayed to the user
final
extra → dynamic
extra callback sign
final
hashCode int
The hash code for this object.
no setterinherited
message String
message Error message; subject to future changes
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? code, String? message, dynamic extra, int? clientId}) TdError
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String