WebServerException class

Thrown when the server cannot start, for example because the address cannot be bound or the certificate cannot be read.

It stops the application at startup. A port in use is the subtype PortInUseException, which gets a clearer report.

Implemented types
Implementers

Constructors

WebServerException(String message, [Object? cause])
A failure described by message, caused by cause.

Properties

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

Operators

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