drumstick  0.5.0
SequencerError Class Reference

Class used to report errors from the ALSA sequencer. More...

#include <drumstickcommon.h>

Public Member Functions

 SequencerError (QString const &s, int rc)
 Constructor. More...
 
virtual ~SequencerError ()
 Destructor.
 
const QString qstrError () const
 Gets the human readable error message from the error code. More...
 
int code () const
 Gets the numeric error code. More...
 
const QString & location () const
 Gets the location of the error code as provided in the constructor. More...
 

Detailed Description

Class used to report errors from the ALSA sequencer.

The class SequencerError represents an exception object reported when the ALSA library returns an error code. It is only used for severe errors.

Examples
sysinfo.cpp.

Definition at line 54 of file drumstickcommon.h.

Constructor & Destructor Documentation

◆ SequencerError()

SequencerError ( QString const &  s,
int  rc 
)
inline

Constructor.

Parameters
sError location
rcNumeric error code

Definition at line 62 of file drumstickcommon.h.

Member Function Documentation

◆ code()

int code ( ) const
inline

Gets the numeric error code.

Returns
Error code

Definition at line 83 of file drumstickcommon.h.

◆ location()

const QString& location ( ) const
inline

Gets the location of the error code as provided in the constructor.

Returns
Error location

Definition at line 92 of file drumstickcommon.h.

◆ qstrError()

const QString qstrError ( ) const
inline

Gets the human readable error message from the error code.

Returns
Error message
Examples
sysinfo.cpp.

Definition at line 74 of file drumstickcommon.h.


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