00001 #ifndef CLASSLIB_SUB_PROCESS_ERROR_H 00002 # define CLASSLIB_SUB_PROCESS_ERROR_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "classlib/utils/Error.h" 00007 00008 namespace lat { 00009 //<<<<<< PUBLIC DEFINES >>>>>> 00010 //<<<<<< PUBLIC CONSTANTS >>>>>> 00011 //<<<<<< PUBLIC TYPES >>>>>> 00012 //<<<<<< PUBLIC VARIABLES >>>>>> 00013 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00014 //<<<<<< CLASS DECLARATIONS >>>>>> 00015 00017 class SubProcessError : public Error 00018 { 00019 public: 00020 SubProcessError (const char *context, int code = 0); 00021 SubProcessError (const char *context, Error *chain); 00022 00023 virtual std::string explainSelf (void) const; 00024 virtual Error * clone (void) const; 00025 virtual void rethrow (void); 00026 00027 private: 00028 std::string m_context; 00029 }; 00030 00031 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00032 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00033 00034 } // namespace lat 00035 #endif // CLASSLIB_SUB_PROCESS_ERROR_H