OSError class
An Exception holding information about an error from the operating system.
- Implemented types
Constructors
- OSError.new([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.
final
- hashCode â int
-
The hash code for this object.
no setterinherited
- message â String
-
Error message supplied by the operating system. This will be empty if no
message is associated with the error.
final
- runtimeType â Type
-
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 -
Converts an OSError object to a string representation.
override
Operators
-
operator ==(
Object other) â bool -
The equality operator.
inherited
Constants
- noErrorCode â const int
- Constant used to indicate that no OS error code is available.