OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimException.cpp
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.cpp 10029 2006-12-04 23:23:11Z dburken $
10 
12 
14  : theErrorMessage()
15 {
16 }
17 
18 ossimException::ossimException(const std::string& errorMessage) throw()
19  : theErrorMessage(errorMessage)
20 {
21 }
22 
24 {
25 }
26 
27 const char* ossimException::what() const throw()
28 {
29  return theErrorMessage.c_str();
30 }
virtual ~ossimException()
virtual destructor.
std::string theErrorMessage
This is the error message returned by what().
virtual const char * what() const
Returns the error message.
ossimException()
default construction