An OSError object holds information about an error from the operating system.

Constants

noErrorCode int

Constant used to indicate that no OS error code is available.

-1

Constructors

OSError([String message = "", int errorCode = noErrorCode ])

Creates an OSError object from a message and an errorCode.

const

Properties

errorCode int

Error code supplied by the operating system. Will have the value noErrorCode if there is no error code associated with the error.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
message String

Error message supplied by the operating system. null if no message is associated with the error.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Converts an OSError object to a string representation.