ErrorCode enum

PowerTip error codes

Use this class wisely to better understand what issues are occurring when using the exposed API.

Inheritance

Constructors

ErrorCode()
const

Values

none → const ErrorCode

No error.

pending → const ErrorCode

An operation is still being carried out.

notSupported → const ErrorCode

Operation not supported.

downloadFailed → const ErrorCode

Download has failed.

downloadedButSaveFailed → const ErrorCode

Download successfully, but couldn't save the file to disk.

socketFailure → const ErrorCode

A socket-related issue.

instanceAlreadyInUse → const ErrorCode

An existing instance is already being used.

rejected → const ErrorCode

Operation rejected.

terminatedByUser → const ErrorCode

Connection terminated by a user.

userNotFound → const ErrorCode

Could not find the user.

handshakeError → const ErrorCode

A handshake error has occurred.

timedout → const ErrorCode

Operation took too long.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Constants

values → const List<ErrorCode>
A constant List of the values in this enum, in order of their declaration.