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

SocketException.closed()

Creates an exception reporting that a socket was used after it was closed.

const

Properties

addressInternetAddress?

The address of the socket giving rise to the exception.

final

hashCodeint

The hash code for this object.

no setterinherited

messageString

Description of the error.

final

osErrorOSError?

The underlying OS error.

final

portint?

The port of the socket giving rise to the exception.

final

runtimeTypeType

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