PortInUseException class

Thrown when the server cannot start because another process (or another server of this one) already listens on its port.

The PortInUseFailureAnalyzer turns it into a short report at startup that says what to do.

Inheritance

Constructors

PortInUseException(int port, [Object? cause])
The port is taken; cause is the socket error.

Properties

cause → Object?
The error that caused it, usually a SocketException; null when none.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
What went wrong, such as cannot listen on *:8080.
finalinherited
port → int
The port the server tried to listen on.
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