dart:io
OSError class
An Exception holding information about an error from the operating system.
- Implemented types
-
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.
- hashCode → int
read-only, inherited
- The hash code for this object.
- message → String
final
- Error message supplied by the operating system. This will be empty if no message is associated with the error.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed.
- toString() → String
override
- Converts an OSError object to a string representation.
Operators
- operator ==(Object other) → bool
inherited
- The equality operator.
Constants
- noErrorCode → const int
- Constant used to indicate that no OS error code is available.
-1