ErrorCause enum

Indicates the cause of an NsdError.

Inheritance

Constructors

ErrorCause()
const

Values

illegalArgument → const ErrorCause

Indicates missing or invalid service name, type, host, port etc; in most cases this may be corrected by the client by changing these arguments.

maxLimit → const ErrorCause

Indicates too many "outstanding requests" - on Android (30) this seems to be 10 operations (running discoveries and active registrations combined).

alreadyActive → const ErrorCause

This error occurs on Android (seen on API 30) if too many resolve operations are requested simultaneously. It should be prevented by the semaphore on the native side.

internalError → const ErrorCause

An error in platform or native code that cannot be addressed by the client.

operationNotSupported → const ErrorCause

The operation is not supported, for example if the OS version is not recent enough and doesn't support mDNS / DNS-SD API.

securityIssue → const ErrorCause

A security issue, for example a missing permission.

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<ErrorCause>
A constant List of the values in this enum, in order of their declaration.