#ifndef __MISCELLANEOUS_EXCEPTIONS_2006_06_26__ #define __MISCELLANEOUS_EXCEPTIONS_2006_06_26__ /** @file MiscExceptions.h @author Brian Magill @creationdate 6/26/2006 @brief a temporary place to put general types of exceptions It still is unclear what exceptions will eventually be used and how they will used. Until this is sorted out, this header shall exist. */ #include #include "GATS_Exception.h" class IOException : public GATS_Exception { public: IOException(std::string msg, const char *filename, const unsigned int linenumber) : GATS_Exception(msg.c_str(),filename,linenumber) {}; }; class MissingEntryException : public GATS_Exception { public: MissingEntryException(std::string msg, const char *filename, const unsigned int linenumber) : GATS_Exception(msg.c_str(),filename,linenumber) {}; }; class UnknownException : public GATS_Exception { public: UnknownException(std::string msg, const char *filename, const unsigned int linenumber) : GATS_Exception(msg.c_str(),filename,linenumber) {}; }; class BadDataException : public GATS_Exception { public: BadDataException(std::string msg, const char *filename, const unsigned int linenumber) : GATS_Exception(msg.c_str(),filename,linenumber) {}; }; class BoundaryException : public GATS_Exception { public: BoundaryException(std::string msg, const char *filename, const unsigned int linenumber) : GATS_Exception(msg.c_str(),filename,linenumber) {}; }; #endif