FileSystemException constructor

const FileSystemException(
  1. [String message = "",
  2. String? path = "",
  3. OSError? osError]
)

Creates a new file system exception with optional parts.

Creates an exception with FileSystemException.message, FileSystemException.path and FileSystemException.osError values take from the optional parameters of the same name.

The message and path path defaults to empty strings if omitted, and osError defaults to null.

Implementation

@pragma("vm:entry-point")
const FileSystemException([this.message = "", this.path = "", this.osError]);

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