COPASI API
4.16.103
Main Page
Namespaces
Classes
Files
File List
File Members
copasi
sbml
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
*/
18
StdException::StdException
() throw()
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
*/
34
StdException::~StdException
() throw()
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
}
StdException::StdException
StdException()
Definition:
StdException.cpp:18
StdException::message
std::string message
Definition:
StdException.h:47
StdException::what
virtual const char * what() const
Definition:
StdException.cpp:40
StdException::~StdException
virtual ~StdException()
Definition:
StdException.cpp:34
StdException.h
Generated on Thu Jul 2 2015 14:50:48 for COPASI API by
1.8.6