Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
XBase Class Reference

Exception base class. More...

#include <XBase.h>

Inheritance diagram for XBase:
Collaboration diagram for XBase:

Public Member Functions

 XBase ()
 Use getWhat() as the result of what()
 XBase (const std::string &msg)
 Use msg as the result of what()
 ~XBase () 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

◆ XBase() [1/2]

XBase::XBase ( )

Use getWhat() as the result of what()

◆ XBase() [2/2]

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

Use msg as the result of what()

◆ ~XBase()

XBase::~XBase ( )
throw ( )
overridedefault

Member Function Documentation

◆ format()

std::string XBase::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 * XBase::what ( ) const
throw ( )
override

Reason for exception.


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