drumstick  0.5.0
SequencerError Class Reference

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

#include <drumstickcommon.h>

List of all members.

Public Member Functions

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

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 ( QString const &  s,
int  rc 
) [inline]

Constructor.

Parameters:
sError location
rcNumeric error code

Definition at line 62 of file drumstickcommon.h.


Member Function Documentation

int code ( ) const [inline]

Gets the numeric error code.

Returns:
Error code

Definition at line 83 of file drumstickcommon.h.

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.

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: