FileSystemExceptionExplanation extension
Adds cross-platform extensions that give explanations to common problems when accessing files.
Properties
- isDirectoryNotEmpty → bool
-
Occurs when you try to non-recursively delete a directory but it contains files.
no setter
- isNoSuchFileOrDirectory → bool
-
Occurs when the requested file or directory does not exist;
or its parent directory does not exist.
no setter
Methods
-
isAndroidError(
int errorCode) → bool -
Returns
true
if the exception was caused by error with codeerrorCode
on Android. -
isFuchsiaError(
int errorCode) → bool -
Returns
true
if the exception was caused by error with codeerrorCode
on Fuchsia. -
isIosError(
int errorCode) → bool -
Returns
true
if the exception was caused by error with codeerrorCode
on iOS. -
isLinuxError(
int errorCode) → bool -
Returns
true
if the exception was caused by error with codeerrorCode
on Linux. -
isMacOsError(
int errorCode) → bool -
Returns
true
if the exception was caused by error with codeerrorCode
on macOS. -
isWindowsError(
int errorCode) → bool -
Returns
true
if the exception was caused by error with codeerrorCode
on Windows.