sptk2 logo
SPTK Home Page
Public Member Functions | Static Public Member Functions | List of all members
sptk::SystemException Class Reference

SPTK OS operation exception. More...

#include <SystemException.h>

Inheritance diagram for sptk::SystemException:
sptk::Exception

Public Member Functions

 SystemException (const String &context, const fs::path &file="", int line=0) DOESNT_THROW
 Constructor. More...
 
 SystemException (const SystemException &other)=default
 Copy constructor. More...
 
 ~SystemException () override=default
 Destructor.
 
- Public Member Functions inherited from sptk::Exception
 Exception (const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW
 Constructor. More...
 
const char * what () const DOESNT_THROW override
 Returns complete text of exception.
 
String message () const
 Returns exception message without file name, line number, or description.
 
String file () const
 Returns exception file name.
 
int line () const
 Returns exception line number.
 
String description () const
 Returns exception description.
 

Static Public Member Functions

static String osError ()
 Returns OS error.
 

Detailed Description

SPTK OS operation exception.

Retrieves information about OS error after failed OS operation.

Constructor & Destructor Documentation

◆ SystemException() [1/2]

sptk::SystemException::SystemException ( const String context,
const fs::path &  file = "",
int  line = 0 
)

Constructor.

Parameters
contextstd::string, the exception context
filestd::string, the file name where exception occurs
lineint, the line number in the file where exception occurs

◆ SystemException() [2/2]

sptk::SystemException::SystemException ( const SystemException other)
default

Copy constructor.

Parameters
otherconst SystemException&, the other exception object

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

Fri Oct 14 2022 09:58:46: SPTK 5.4.1