PteroApiException class

A common exception class with whatever error data the server sent us

Inheritance

Constructors

PteroApiException({required PteroErrors errors, required DioException rawDioException, Object? rawData, int? statusCode, String? statusMessage})

Properties

error PteroError
no setter
errors → IList<PteroError>
The errors the panel gave us
no setter
hashCode int
The hash code for this object.
no setterinherited
message String
no setteroverride
rawData JsonMap
The raw data from the server, but we know its a Map now
no setteroverride
rawDioException → DioException
The original DioException that was thrown
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The status code of the response if available.
finalinherited
statusMessage String
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.
override

Operators

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