Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
BaseException Class Reference

Exception base class. More...

#include <BaseException.h>

Inheritance diagram for BaseException:
Collaboration diagram for BaseException:

Public Member Functions

 BaseException ()
 Use getWhat() as the result of what().
 BaseException (const std::string &msg)
 Use msg as the result of what().
 ~BaseException () override throw () =default
const char * what () const override throw ()
 Reason for exception.

Protected Member Functions

virtual std::string getWhat () const noexcept
 Get a human readable string describing the exception.
virtual std::string format (const char *id, const char *defaultFormat,...) const noexcept
 Format a string.

Detailed Description

Exception base class.

This is the base class of most exception types.

Constructor & Destructor Documentation

◆ BaseException() [1/2]

BaseException::BaseException ( )

Use getWhat() as the result of what().

◆ BaseException() [2/2]

BaseException::BaseException ( const std::string & msg)
explicit

Use msg as the result of what().

◆ ~BaseException()

BaseException::~BaseException ( )
throw ( )
overridedefault

Member Function Documentation

◆ format()

std::string BaseException::format ( const char * id,
const char * defaultFormat,
... ) const
protectedvirtualnoexcept

Format a string.

Looks up a message format using id, using defaultFormat if no format can be found, then replaces positional parameters in the format string and returns the result.

◆ getWhat()

◆ what()

const char * BaseException::what ( ) const
throw ( )
override

Reason for exception.


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