Pd++  0.01
A pure C++ implementation of Pure Data objects
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Types | Public Member Functions | Protected Attributes | List of all members
stk::StkError Class Reference

STK error handling class. More...

#include <Stk.h>

Public Types

enum  Type {
  STATUS, WARNING, DEBUG_PRINT, MEMORY_ALLOCATION,
  MEMORY_ACCESS, 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

 StkError (const std::string &message, Type type=StkError::UNSPECIFIED)
 The constructor.
 
virtual ~StkError (void)
 The destructor.
 
virtual void printMessage (void)
 Prints thrown error message to stderr.
 
virtual const Type & getType (void)
 Returns the thrown error message type.
 
virtual const std::string & getMessage (void)
 Returns the thrown error message string.
 
virtual const char * getMessageCString (void)
 Returns the thrown error message as a C string.
 

Protected Attributes

std::string message_
 
Type type_
 

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.


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