Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::exception::SystemError Class Referencefinal

#include <exception.hpp>

Inheritance diagram for iv::exception::SystemError:
[legend]
Collaboration diagram for iv::exception::SystemError:
[legend]

Public Member Functions

 SystemError (const std::string_view msg)
 
 SystemError (std::string_view msg, int errCode)
 
eExceptionType exceptionType () const noexcept override
 
int64_t errorCode () const noexcept override
 
const char * what () const noexcept override
 

Protected Attributes

std::string m_msg
 

Private Attributes

int64_t m_errorCode
 

Detailed Description

SystemError

This exception is thrown in the event of an error related to interacting with the operating system.

This exception type also (optionally) captures an integer error code e.g. POSIX errno or Windows GetLastError.

Constructor & Destructor Documentation

◆ SystemError() [1/2]

iv::exception::SystemError::SystemError ( const std::string_view msg)
inlineexplicit

◆ SystemError() [2/2]

iv::exception::SystemError::SystemError ( std::string_view msg,
int errCode )
inline

Member Function Documentation

◆ errorCode()

int64_t iv::exception::SystemError::errorCode ( ) const
inlinenodiscardoverridevirtualnoexcept

Reimplemented from iv::exception::Exception.

◆ exceptionType()

eExceptionType iv::exception::SystemError::exceptionType ( ) const
inlinenodiscardoverridevirtualnoexcept

Reimplemented from iv::exception::Exception.

◆ what()

const char * iv::exception::Exception::what ( ) const
inlinenodiscardoverridenoexceptinherited

Member Data Documentation

◆ m_errorCode

int64_t iv::exception::SystemError::m_errorCode
private

◆ m_msg

std::string iv::exception::Exception::m_msg
protectedinherited

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