pianod2
multisource multiuser scriptable networked music player
Public Member Functions | Private Attributes | List of all members
CommandError Class Referencefinal

Exception for command execution problems. More...

#include <fundamentals.h>

Inheritance diagram for CommandError:
Inheritance graph
[legend]
Collaboration diagram for CommandError:
Collaboration graph
[legend]

Public Member Functions

 CommandError (RESPONSE_CODE r)
 
 CommandError (RESPONSE_CODE r, const char *message)
 
 CommandError (RESPONSE_CODE r, const std::string &message)
 
 CommandError (const CommandError &)=delete
 
 CommandError (CommandError &&from)
 
CommandErroroperator= (const CommandError &)=delete
 
CommandErroroperator= (CommandError &&from)
 
RESPONSE_CODE reason (void) const
 
virtual const char * what () const override throw ()
 

Private Attributes

const RESPONSE_CODE _reason
 
char * detail = nullptr
 

Detailed Description

Exception for command execution problems.

If not caught, the connection's exception handler sends out the contained response.

Constructor & Destructor Documentation

◆ CommandError() [1/5]

CommandError::CommandError ( RESPONSE_CODE  r)
inline

◆ CommandError() [2/5]

CommandError::CommandError ( RESPONSE_CODE  r,
const char *  message 
)
inline

◆ CommandError() [3/5]

CommandError::CommandError ( RESPONSE_CODE  r,
const std::string &  message 
)
inline

◆ CommandError() [4/5]

CommandError::CommandError ( const CommandError )
delete

◆ CommandError() [5/5]

CommandError::CommandError ( CommandError &&  from)
inline

Member Function Documentation

◆ operator=() [1/2]

CommandError& CommandError::operator= ( CommandError &&  from)
inline

◆ operator=() [2/2]

CommandError& CommandError::operator= ( const CommandError )
delete

◆ reason()

RESPONSE_CODE CommandError::reason ( void  ) const
inline
Here is the caller graph for this function:

◆ what()

virtual const char* CommandError::what ( ) const
throw (
)
inlineoverridevirtual
Here is the caller graph for this function:

Member Data Documentation

◆ _reason

const RESPONSE_CODE CommandError::_reason
private

◆ detail

char* CommandError::detail = nullptr
private

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