• Main Page
  • Classes
  • Files
  • File List

PhaseExceptions.h

00001 /*
00002  * Exception classes for phases class hierarchy
00003  * Victor Kress
00004  * Seatle, 2004
00005  */
00006 #ifndef PHASEEXCEPTIONS_H
00007 #define PHASEEXCEPTIONS_H
00008 
00016 enum errorType {INVALID,BOUNDS,STATE,CALCULATION};
00017 
00024 enum errorSeverity {WARNING,SERIOUS,FATAL};
00025 
00032 class PhaseError {
00033  public:
00035   errorType type;
00037   errorSeverity severity;
00039   char *caller;
00041   char *description;
00047   PhaseError(errorType _type, errorSeverity _severity,
00048              char *_caller,char *_description);
00050   virtual ~PhaseError();
00052   virtual void printErr();
00053 };
00054 
00055 #endif

Generated on Fri Aug 6 2010 13:30:28 for phases by  doxygen 1.7.1