Appearance
IOError
cpp
#include <utlib/include/utl/io/IOError.h>cpp
struct IOErrorDefined in utlib/include/utl/io/IOError.h:21
Exception thrown if a file or folder cannot be accessed.
The error code (see fault()) is one of the constants below. The message returned by what() names the affected file or folder.
Public Methods
| Return | Name | Description |
|---|---|---|
const char * | errstr virtual const inline noexcept override | Returns the name of the error code. |
IOError inline explicit | Creates an error with an error code and the name of the affected file or folder. |
errstr
virtual const inline noexcept override
cpp
virtual inline const char * errstr() const noexcept overrideDefined in utlib/include/utl/io/IOError.h:46
Returns the name of the error code.
Reimplements
IOError
inline explicit
cpp
inline explicit IOError(long fault, const std::string & msg = "")Defined in utlib/include/utl/io/IOError.h:78
Creates an error with an error code and the name of the affected file or folder.
Public Static Attributes
| Return | Name | Description |
|---|---|---|
long | DIR_NOT_FOUND static constexpr | The folder does not exist. |
long | DIR_ACCESS_DENIED static constexpr | Access to the folder was denied. |
long | DIR_CANT_CREATE static constexpr | The folder could not be created. |
long | DIR_CANT_DELETE static constexpr | The folder could not be deleted. |
long | DIR_NOT_EMPTY static constexpr | The folder is not empty. |
long | FILE_NOT_FOUND static constexpr | The file does not exist. |
long | FILE_EXISTS static constexpr | The file exists already. |
long | FILE_IS_DIRECTORY static constexpr | The path refers to a folder, not a file. |
long | FILE_ACCESS_DENIED static constexpr | Access to the file was denied. |
long | FILE_TYPE_MISMATCH static constexpr | The file has the wrong type. |
long | FILE_TYPE_UNSUPPORTED static constexpr | The file type is not supported. |
long | FILE_CANT_READ static constexpr | The file could not be read. |
long | FILE_CANT_WRITE static constexpr | The file could not be written. |
long | FILE_CANT_CREATE static constexpr | The file could not be created. |
long | FILE_CANT_DELETE static constexpr | The file could not be deleted. |
long | FILE_INVALID_DATA static constexpr | The file contains invalid data. |
long | FILE_IN_USE static constexpr | The file is in use. |
long | JSON_ERROR static constexpr | A JSON document could not be processed. |
long | ZLIB_ERROR static constexpr | Compression or decompression failed. |
DIR_NOT_FOUND
static constexpr
cpp
long DIR_NOT_FOUND = 0Defined in utlib/include/utl/io/IOError.h:23
The folder does not exist.
DIR_ACCESS_DENIED
static constexpr
cpp
long DIR_ACCESS_DENIED = 1Defined in utlib/include/utl/io/IOError.h:24
Access to the folder was denied.
DIR_CANT_CREATE
static constexpr
cpp
long DIR_CANT_CREATE = 2Defined in utlib/include/utl/io/IOError.h:25
The folder could not be created.
DIR_CANT_DELETE
static constexpr
cpp
long DIR_CANT_DELETE = 3Defined in utlib/include/utl/io/IOError.h:26
The folder could not be deleted.
DIR_NOT_EMPTY
static constexpr
cpp
long DIR_NOT_EMPTY = 4Defined in utlib/include/utl/io/IOError.h:27
The folder is not empty.
FILE_NOT_FOUND
static constexpr
cpp
long FILE_NOT_FOUND = 10Defined in utlib/include/utl/io/IOError.h:29
The file does not exist.
FILE_EXISTS
static constexpr
cpp
long FILE_EXISTS = 11Defined in utlib/include/utl/io/IOError.h:30
The file exists already.
FILE_IS_DIRECTORY
static constexpr
cpp
long FILE_IS_DIRECTORY = 12Defined in utlib/include/utl/io/IOError.h:31
The path refers to a folder, not a file.
FILE_ACCESS_DENIED
static constexpr
cpp
long FILE_ACCESS_DENIED = 13Defined in utlib/include/utl/io/IOError.h:32
Access to the file was denied.
FILE_TYPE_MISMATCH
static constexpr
cpp
long FILE_TYPE_MISMATCH = 14Defined in utlib/include/utl/io/IOError.h:33
The file has the wrong type.
FILE_TYPE_UNSUPPORTED
static constexpr
cpp
long FILE_TYPE_UNSUPPORTED = 15Defined in utlib/include/utl/io/IOError.h:34
The file type is not supported.
FILE_CANT_READ
static constexpr
cpp
long FILE_CANT_READ = 16Defined in utlib/include/utl/io/IOError.h:35
The file could not be read.
FILE_CANT_WRITE
static constexpr
cpp
long FILE_CANT_WRITE = 17Defined in utlib/include/utl/io/IOError.h:36
The file could not be written.
FILE_CANT_CREATE
static constexpr
cpp
long FILE_CANT_CREATE = 18Defined in utlib/include/utl/io/IOError.h:37
The file could not be created.
FILE_CANT_DELETE
static constexpr
cpp
long FILE_CANT_DELETE = 19Defined in utlib/include/utl/io/IOError.h:38
The file could not be deleted.
FILE_INVALID_DATA
static constexpr
cpp
long FILE_INVALID_DATA = 20Defined in utlib/include/utl/io/IOError.h:39
The file contains invalid data.
FILE_IN_USE
static constexpr
cpp
long FILE_IN_USE = 21Defined in utlib/include/utl/io/IOError.h:40
The file is in use.
JSON_ERROR
static constexpr
cpp
long JSON_ERROR = 30Defined in utlib/include/utl/io/IOError.h:42
A JSON document could not be processed.
ZLIB_ERROR
static constexpr
cpp
long ZLIB_ERROR = 31Defined in utlib/include/utl/io/IOError.h:43
Compression or decompression failed.