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

Database operation exception. More...

#include <Exception.h>

Inheritance diagram for sptk::DatabaseException:
sptk::Exception

Public Member Functions

 DatabaseException (const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW
 Constructor. More...
 
 DatabaseException (const DatabaseException &other)=default
 Copy constructor. More...
 
- 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.
 

Detailed Description

Database operation exception.

Thrown when database operation error occurs.

Constructor & Destructor Documentation

◆ DatabaseException() [1/2]

sptk::DatabaseException::DatabaseException ( const String text,
const fs::path &  file = std::string(),
int  line = 0,
const String description = String() 
)

Constructor.

Parameters
textThe exception text
fileThe file where exception occurs
lineThe line number in the file where exception occurs
descriptionThe optional description information

◆ DatabaseException() [2/2]

sptk::DatabaseException::DatabaseException ( const DatabaseException other)
default

Copy constructor.

Parameters
otherOther exception object

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

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