W3cubDocs

/Dart 2

OSError class

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

Constructors

OSError([String message = "", int errorCode = noErrorCode ])
const
Creates an OSError object from a message and an errorCode.

Properties

errorCodeint
final
Error code supplied by the operating system. [...]
messageString
final
Error message supplied by the operating system. This may be null or empty if no message is associated with the error.
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

toString() → String
Converts an OSError object to a string representation.
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Constants

noErrorCode → const int
Constant used to indicate that no OS error code is available.
-1

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/OSError-class.html