FileSystemErrorUnion

PackageAxial.FileSystem
Describes a meaningful file-system failure.

Specification

Kind
Union
Members
20
Examples
0
IsIoSignature
this.IsIo
IsUnauthorizedSignature
this.IsUnauthorized
IsPathTooLongSignature
this.IsPathTooLong
IsDirectoryNotFoundSignature
this.IsDirectoryNotFound
IsInvalidPathSignature
this.IsInvalidPath

Summary

NameSignatureSynopsis
IsIothis.IsIoNo description available.
IsUnauthorizedthis.IsUnauthorizedNo description available.
IsPathTooLongthis.IsPathTooLongNo description available.
IsDirectoryNotFoundthis.IsDirectoryNotFoundNo description available.
IsInvalidPaththis.IsInvalidPathNo description available.
IsCanceledthis.IsCanceledNo description available.
IsUnsupportedthis.IsUnsupportedNo description available.
IsUnexpectedthis.IsUnexpectedNo description available.
IsAlreadyExiststhis.IsAlreadyExistsNo description available.
IsFileNotFoundthis.IsFileNotFoundNo description available.
FileNotFoundFileNotFound pathA file was not found.
DirectoryNotFoundDirectoryNotFound pathA directory was not found.
AlreadyExistsAlreadyExists pathThe requested path already exists.
UnauthorizedUnauthorized(path, message)The caller is not authorized to access the requested path.
InvalidPathInvalidPath(path, message)The requested path was invalid.
PathTooLongPathTooLong(path, message)The requested path was too long for the platform.
CanceledCanceled messageThe operation was canceled.
IoIo(path, message)The operation failed with a general I/O error.
UnsupportedUnsupported(path, message)The operation is not supported by the current platform or path shape.
UnexpectedUnexpected(path, message)An unexpected exception escaped a file-system operation.

IsIo

this.IsIo
Member

Returns

bool

IsUnauthorized

this.IsUnauthorized
Member

Returns

bool

IsPathTooLong

this.IsPathTooLong
Member

Returns

bool

IsDirectoryNotFound

this.IsDirectoryNotFound
Member

Returns

bool

IsInvalidPath

this.IsInvalidPath
Member

Returns

bool

IsCanceled

this.IsCanceled
Member

Returns

bool

IsUnsupported

this.IsUnsupported
Member

Returns

bool

IsUnexpected

this.IsUnexpected
Member

Returns

bool

IsAlreadyExists

this.IsAlreadyExists
Member

Returns

bool

IsFileNotFound

this.IsFileNotFound
Member

Returns

bool

FileNotFound

FileNotFound path
Member
A file was not found.

Parameters

NameTypeDescription
pathstring

Returns

unit

DirectoryNotFound

DirectoryNotFound path
Member
A directory was not found.

Parameters

NameTypeDescription
pathstring

Returns

unit

AlreadyExists

AlreadyExists path
Member
The requested path already exists.

Parameters

NameTypeDescription
pathstring

Returns

unit

Unauthorized

Unauthorized(path, message)
Member
The caller is not authorized to access the requested path.

Parameters

NameTypeDescription
pathstring option
messagestring

Returns

unit

InvalidPath

InvalidPath(path, message)
Member
The requested path was invalid.

Parameters

NameTypeDescription
pathstring option
messagestring

Returns

unit

PathTooLong

PathTooLong(path, message)
Member
The requested path was too long for the platform.

Parameters

NameTypeDescription
pathstring option
messagestring

Returns

unit

Canceled

Canceled message
Member
The operation was canceled.

Parameters

NameTypeDescription
messagestring

Returns

unit

Io

Io(path, message)
Member
The operation failed with a general I/O error.

Parameters

NameTypeDescription
pathstring option
messagestring

Returns

unit

Unsupported

Unsupported(path, message)
Member
The operation is not supported by the current platform or path shape.

Parameters

NameTypeDescription
pathstring option
messagestring

Returns

unit

Unexpected

Unexpected(path, message)
Member
An unexpected exception escaped a file-system operation.

Parameters

NameTypeDescription
pathstring option
messagestring

Returns

unit