W3cubDocs

/Dart 2

FileSystemException class

Exception thrown when a file operation fails.

Implemented types

Constructors

FileSystemException([String message = "", String path = "", OSError osError ])
const
Creates a new FileSystemException with an optional error message message, optional file system path path and optional OS error osError.

Properties

messageString
final
Message describing the error. This does not include any detailed information form the underlying OS error. Check osError for that information.
osErrorOSError
final
The underlying OS error. Can be null if the exception is not raised due to an OS error.
pathString
final
The file system path on which the error occurred. Can be null if the exception does not relate directly to a file system path.
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
override
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]

Operators

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/FileSystemException-class.html