SocketException class - dart:io library (original) (raw)
Exception thrown when a socket operation fails.
Implemented types
Constructors
SocketException(String message, {OSError? osError, InternetAddress? address, int? port})
Creates a SocketException with the provided values.
const
Creates an exception reporting that a socket was used after it was closed.
const
Properties
The address of the socket giving rise to the exception.
final
The hash code for this object.
no setterinherited
Description of the error.
final
The underlying OS error.
final
The port of the socket giving rise to the exception.
final
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
A string representation of this object.
override
Operators
operator ==(Object other)→ bool
The equality operator.
inherited