NsgApiError class

Подробное описание ошибки связи с сервером

Constructors

NsgApiError.new({int? code, String? message, DioExceptionType? errorType})

Properties

code int?
Код ошибки. Основные коды: 400 - сервер вернул ошибку. Подробности в message. Повтор запроса смысла не имеет 401 - отказано в доступе 404 - вызываемая функция не найдена на сервере 500 - сервер вернул ошибку. Подробности в message
final
errorType → DioExceptionType?
Тип ошибки (из пакета Dio)
final
hashCode int
The hash code for this object.
no setterinherited
message String?
Подробное описание ошибки. В случае ошибки 400 или 500 должна содержать информацию для отображения польщователю
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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