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

Generic exit eception. More...

#include <XDeskflow.h>

Inheritance diagram for XExitApp:
Collaboration diagram for XExitApp:

Public Member Functions

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

std::string getWhat () const override throw ()
 Get a human readable string describing the exception.
Protected Member Functions inherited from XBase
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

◆ XExitApp()

XExitApp::XExitApp ( int code)
explicit

◆ ~XExitApp()

XExitApp::~XExitApp ( )
throw ( )
overridedefault

Member Function Documentation

◆ getCode()

int XExitApp::getCode ( ) const
noexcept

Get the exit code.

◆ getWhat()

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

Get a human readable string describing the exception.

Reimplemented from XBase.


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