OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimException.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 // License: See top level LICENSE.txt file.
3 //
4 // Author: David Burken
5 //
6 // Description: Generic OSSIM Exception that is a std::exception with a
7 // what() method implemented.
8 //----------------------------------------------------------------------------
9 // $Id: ossimException.h 10029 2006-12-04 23:23:11Z dburken $
10 #ifndef ossimException_HEADER
11 #define ossimException_HEADER
12 
13 #include <exception>
14 #include <string>
16 
17 class OSSIM_DLL ossimException : public std::exception
18 {
19 public:
20 
22  ossimException() throw();
23 
28  ossimException(const std::string& errorMessage) throw();
29 
31  virtual ~ossimException() throw();
32 
37  virtual const char* what() const throw();
38 
39 private:
40 
42  std::string theErrorMessage;
43 };
44 
45 #endif /* End of #ifndef ossimException_HEADER */
std::string theErrorMessage
This is the error message returned by what().
#define OSSIM_DLL