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

Generic exit eception. More...

#include <DeskflowException.h>

Inheritance diagram for ExitAppException:
Collaboration diagram for ExitAppException:

Public Member Functions

 ExitAppException (int code)
 ~ExitAppException () override throw () =default
int getCode () const noexcept
 Get the exit code.
Public Member Functions inherited from BaseException
 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

std::string getWhat () const override throw ()
 Get a human readable string describing the exception.
Protected Member Functions inherited from BaseException
virtual std::string format (const char *id, const char *defaultFormat,...) const noexcept
 Format a string.

Detailed Description

Generic exit eception.

Thrown when we want to abort, with the opportunity to clean up. This is a little bit of a hack, but it's a better way of exiting, than just calling exit(int).

Constructor & Destructor Documentation

◆ ExitAppException()

ExitAppException::ExitAppException ( int code)
explicit

◆ ~ExitAppException()

ExitAppException::~ExitAppException ( )
throw ( )
overridedefault

Member Function Documentation

◆ getCode()

int ExitAppException::getCode ( ) const
noexcept

Get the exit code.

◆ getWhat()

std::string ExitAppException::getWhat ( ) const
throw ( )
overrideprotectedvirtual

Get a human readable string describing the exception.

Reimplemented from BaseException.


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