IOException

Description

sealed class Tinman.Core.IO.IOException

Derived from

TinmanException

An unexpected I/O error has occurred.

Public / Constructors

Bad​Path


public static method BadPath → (2)

source in : string

The error source (see TinmanError.ErrorSource).

invalidPath in : string

The invalid path string.

returns → IOException

The ready-to-throw exception.

A path string is not valid (e.g. it contains invalid characters).

Cannot​Read


public static method CannotRead → (2)

source in : string

The error source (see TinmanError.ErrorSource).

path in : Path

Optional path info value.

returns → IOException

The ready-to-throw exception.

Creates an IOException for an I/O object that does not allow read access.

Cannot​Seek


public static method CannotSeek → (2)

source in : string

The error source (see TinmanError.ErrorSource).

path in : Path

Optional path info value.

returns → IOException

The ready-to-throw exception.

Creates an IOException for an I/O object that does not allow random seek access.

Cannot​Write


public static method CannotWrite → (2)

source in : string

The error source (see TinmanError.ErrorSource).

path in : Path

Optional path info value.

returns → IOException

The ready-to-throw exception.

Creates an IOException for an I/O object that does not allow write access.

Data​Format​Invalid

2 overloads


public static method DataFormatInvalid1 → (3)

source in : string

The error source (see TinmanError.ErrorSource).

fileFormat in : string

Name of the binary file format.

message opt : string = null

Optional error message.

returns → IOException

The ready-to-throw exception.

Some binary data format is invalid.


public static method DataFormatInvalid2 → (4)

source in : string

The error source (see TinmanError.ErrorSource).

filePath in : Path

Path to the file.

fileFormat in : string

Name of the binary file format.

message opt : string = null

Optional error message.

returns → IOException

The ready-to-throw exception.

The binary format of the given file is invalid.

Data​Format​Not​Supported


public static method DataFormatNotSupported → (4)

source in : string

The error source (see TinmanError.ErrorSource).

filePath in : Path

Path to the file.

format in : string

Name of the binary data format.

what in : string

Describes the feature or version that is not supported.

returns → IOException

The ready-to-throw exception.

A feature or version of a binary data format is not supported.

File​Error

6 overloads


public static method FileError1 → (2)

source in : string

The error source (see TinmanError.ErrorSource).

message in : string

The error message.

returns → IOException

The ready-to-throw exception.

A general filesystem IO error has occurred.


public static method FileError2 → (3)

source in : string

The error source (see TinmanError.ErrorSource).

error in : int32

The file error code.

message in : string

The error message.

returns → IOException

The ready-to-throw exception.

A general filesystem IO error has occurred.


public static method FileError3 → (2)

source in : string

The error source (see TinmanError.ErrorSource).

path in : Path

The file path.

returns → IOException

The ready-to-throw exception.

An I/O error has occurred during a file operation.

Error details are fetched from last OS error code.


public static method FileError4 → (3)

source in : string

The error source (see TinmanError.ErrorSource).

path in : Path

The file path.

error in : int32

The file error code.

returns → IOException

The ready-to-throw exception.

An I/O error has occurred during a file operation.


public static method FileError5 → (3)

source in : string

The error source (see TinmanError.ErrorSource).

path in : Path

The file path.

error in : IOError

The well-known error code.

returns → IOException

The ready-to-throw exception.

An I/O error has occurred during a file operation.


public static method FileError6 → (3)

source in : string

The error source (see TinmanError.ErrorSource).

filePath in : Path

Path to the file being accessed.

message in : string

The error message.

returns → IOException

The ready-to-throw exception.

An unexpected IO error has occurred while accessing a file.

Network​Error

2 overloads


public static method NetworkError1 → (2)

source in : string

The error source (see TinmanError.ErrorSource).

message in : string

The error message.

returns → IOException

The ready-to-throw exception.

An unexpected IO error has occurred while accessing the network.


public static method NetworkError2 → (3)

source in : string

The error source (see TinmanError.ErrorSource).

error in : int32

The network error code.

message opt : string = null

Optional error message.

returns → IOException

The ready-to-throw exception.

An unexpected IO error has occurred while accessing the network.

Public / Methods

Throw​If​No​Create


public static method ThrowIfNoCreate → (1)

obj in : ICanCreateOpenDelete

[not-null]
The I/O object.

Throws an exception if the given object does not allow creation of new resources.

IOException

See summary.

Throw​If​No​Delete


public static method ThrowIfNoDelete → (1)

obj in : ICanCreateOpenDelete

[not-null]
The I/O object.

Throws an exception if the given object does not allow deletion of existing resources.

IOException

See summary.

Throw​If​No​Open


public static method ThrowIfNoOpen → (1)

obj in : ICanCreateOpenDelete

[not-null]
The I/O object.

Throws an exception if the given object does not allow opening of existing resources.

IOException

See summary.

Throw​If​No​Read


public static method ThrowIfNoRead → (1)

obj in : ICanReadWrite

[not-null]
The I/O object.

Throws an exception if the given object does not allow read access.

IOException

See summary.

Throw​If​No​Seek


public static method ThrowIfNoSeek → (1)

stream in : IDataStream

[not-null]
The I/O stream.

Throws an exception if the given stream does not allow random access.

IOException

See summary.

Throw​If​No​Write

2 overloads


public static method ThrowIfNoWrite1 → (1)

obj in : ICanReadWrite

[not-null]
The I/O object.

Throws an exception if the given object does not allow write access.

IOException

See summary.


public static method ThrowIfNoWrite2 → (1)

obj in : IDataStream

[not-null]
The I/O object.

Throws an exception if the given object does not allow write access.

IOException

See summary.

Public / Attributes

Error​Code


public attribute ErrorCode → (get)

value : IOError

The error code.

The well-known error that has caused this I/O exception.