StormByte C++ Library: System module 0.0.9999
StormByte-System is a StormByte library module for encapsulating different process handling over different operating system's complexities
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
StormByte::System::FileIOError Class Referencefinal

Exception thrown when a file can not be opened or written. More...

#include <exception.hxx>

Inheritance diagram for StormByte::System::FileIOError:
Inheritance graph
[legend]
Collaboration diagram for StormByte::System::FileIOError:
Collaboration graph
[legend]

Public Types

enum class  Operation { Read = 0 , Write }
 File operation.
 

Public Member Functions

 FileIOError (const std::filesystem::path &file, const Operation &operation)
 
 FileIOError (const FileIOError &)=default
 
 FileIOError (FileIOError &&) noexcept=default
 
FileIOErroroperator= (const FileIOError &)=default
 
FileIOErroroperator= (FileIOError &&)=default
 
 ~FileIOError () noexcept override=default
 
- Public Member Functions inherited from StormByte::System::Exception
 Exception (const std::string &message)
 
 Exception (const Exception &)=default
 
 Exception (Exception &&) noexcept=default
 
Exceptionoperator= (const Exception &)=default
 
Exceptionoperator= (Exception &&) noexcept=default
 
virtual ~Exception () noexcept override=default
 

Static Public Member Functions

static constexpr const char * operation_to_string (const Operation &op) noexcept
 

Detailed Description

Exception thrown when a file can not be opened or written.

Constructor & Destructor Documentation

◆ FileIOError() [1/3]

StormByte::System::FileIOError::FileIOError ( const std::filesystem::path &  file,
const Operation operation 
)

Constructor

Parameters
filefile path
operationoperation

◆ FileIOError() [2/3]

StormByte::System::FileIOError::FileIOError ( const FileIOError )
default

Copy constructor

◆ FileIOError() [3/3]

StormByte::System::FileIOError::FileIOError ( FileIOError &&  )
defaultnoexcept

Move constructor

◆ ~FileIOError()

StormByte::System::FileIOError::~FileIOError ( )
overridedefaultnoexcept

Destructor

Member Function Documentation

◆ operation_to_string()

static constexpr const char * StormByte::System::FileIOError::operation_to_string ( const Operation op)
inlinestaticconstexprnoexcept

Converts Operation to string

Parameters
opoperation
Returns
string

◆ operator=() [1/2]

FileIOError & StormByte::System::FileIOError::operator= ( const FileIOError )
default

Assignment operator

◆ operator=() [2/2]

FileIOError & StormByte::System::FileIOError::operator= ( FileIOError &&  )
default

Move assignment operator


The documentation for this class was generated from the following file: