COPASI API  4.16.103
StdException.cpp
Go to the documentation of this file.
1 /* Begin CVS Header
2  $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/StdException.cpp,v $
3  $Revision: 1.2 $
4  $Name: $
5  $Author: shoops $
6  $Date: 2006/04/27 01:31:21 $
7  End CVS Header */
8 
9 // Copyright 2005 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc. and EML Research, gGmbH.
11 // All rights reserved.
12 
13 #include "sbml/StdException.h"
14 
15 /**
16  * Constructor that sets the error message object to "Error."
17  */
19 {
20  this->message = "Error.";
21 }
22 
23 /**
24  * Constructor that sets the error message object to the string given.
25  */
26 StdException::StdException(const std::string what) throw()
27 {
28  this->message = what;
29 };
30 
31 /**
32  * Destructor that does nothing.
33  */
35 {}
36 
37 /**
38  * Returns the error message object as a character array.
39  */
40 const char* StdException::what() const throw()
41 {
42  return this->message.c_str();
43 }
std::string message
Definition: StdException.h:47
virtual const char * what() const
virtual ~StdException()