FileSystemErrorUnion

PackageAxial.FileSystem
Describes a meaningful file-system failure.

Specification

Kind
Union
Members
20
Examples
0
IsCanceledSignature
this.IsCanceled
IsIoSignature
this.IsIo
IsFileNotFoundSignature
this.IsFileNotFound
IsPathTooLongSignature
this.IsPathTooLong
IsUnexpectedSignature
this.IsUnexpected

Summary

NameSignatureSynopsis
IsCanceledthis.IsCanceledNo description available.
IsIothis.IsIoNo description available.
IsFileNotFoundthis.IsFileNotFoundNo description available.
IsPathTooLongthis.IsPathTooLongNo description available.
IsUnexpectedthis.IsUnexpectedNo description available.
IsAlreadyExiststhis.IsAlreadyExistsNo description available.
IsUnsupportedthis.IsUnsupportedNo description available.
IsInvalidPaththis.IsInvalidPathNo description available.
IsDirectoryNotFoundthis.IsDirectoryNotFoundNo description available.
IsUnauthorizedthis.IsUnauthorizedNo 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.

IsCanceled

this.IsCanceled
Member

Returns

bool

IsIo

this.IsIo
Member

Returns

bool

IsFileNotFound

this.IsFileNotFound
Member

Returns

bool

IsPathTooLong

this.IsPathTooLong
Member

Returns

bool

IsUnexpected

this.IsUnexpected
Member

Returns

bool

IsAlreadyExists

this.IsAlreadyExists
Member

Returns

bool

IsUnsupported

this.IsUnsupported
Member

Returns

bool

IsInvalidPath

this.IsInvalidPath
Member

Returns

bool

IsDirectoryNotFound

this.IsDirectoryNotFound
Member

Returns

bool

IsUnauthorized

this.IsUnauthorized
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