Marsyas  0.6.0-alpha
Public Types | Public Member Functions
StkError Class Reference

STK error handling class. More...

#include <Stk.h>

Public Types

enum  TYPE {
  WARNING, DEBUG_WARNING, FUNCTION_ARGUMENT, FILE_NOT_FOUND,
  FILE_UNKNOWN_FORMAT, FILE_ERROR, PROCESS_THREAD, PROCESS_SOCKET,
  PROCESS_SOCKET_IPADDR, AUDIO_SYSTEM, MIDI_SYSTEM, UNSPECIFIED
}

Public Member Functions

virtual const char * getMessage (void) const
 Returns the "thrown" error message string.
virtual const TYPE & getType (void)
 Returns the "thrown" error message TYPE.
virtual void printMessage (void)
 Prints "thrown" error message to stdout.
 StkError (const char *p, TYPE tipe=StkError::UNSPECIFIED)
 The constructor.
virtual ~StkError (void)
 The destructor.

Detailed Description

STK error handling class.

This is a fairly abstract exception handling class. There could be sub-classes to take care of more specific error conditions ... or not.

Definition at line 44 of file Stk.h.


Member Enumeration Documentation

enum TYPE
Enumerator:
WARNING 
DEBUG_WARNING 
FUNCTION_ARGUMENT 
FILE_NOT_FOUND 
FILE_UNKNOWN_FORMAT 
FILE_ERROR 
PROCESS_THREAD 
PROCESS_SOCKET 
PROCESS_SOCKET_IPADDR 
AUDIO_SYSTEM 
MIDI_SYSTEM 
UNSPECIFIED 

Definition at line 47 of file Stk.h.


Constructor & Destructor Documentation

StkError ( const char *  p,
TYPE  tipe = StkError::UNSPECIFIED 
)

The constructor.

Definition at line 153 of file Stk.cpp.

~StkError ( void  ) [virtual]

The destructor.

Definition at line 159 of file Stk.cpp.


Member Function Documentation

virtual const char* getMessage ( void  ) const [inline, virtual]

Returns the "thrown" error message string.

Definition at line 80 of file Stk.h.

virtual const TYPE& getType ( void  ) [inline, virtual]

Returns the "thrown" error message TYPE.

Definition at line 77 of file Stk.h.

void printMessage ( void  ) [virtual]

Prints "thrown" error message to stdout.

Definition at line 163 of file Stk.cpp.


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