dart:io
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
- errorCode → int
final
- Error code supplied by the operating system. [...]
- message → String
final
- Error message supplied by the operating system. This may be
null
or empty if no message is associated with the error. - hashCode → int
read-only, inherited
- The hash code for this object. [...]
- runtimeType → Type
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