4 * Copyright 2006,2007 Martin Quinson, Malek Cherier
\r
5 * All right reserved.
\r
7 * This program is free software; you can redistribute
\r
8 * it and/or modify it under the terms of the license
\r
9 *(GNU LGPL) which comes with this package.
\r
13 /* Exception member functions implementation.
\r
14 * The base class of all the types of exceptions of SimGrid::Msg.
\r
17 #include <Exception.hpp>
\r
24 Exception::Exception()
\r
26 reason = "Unknown reason";
\r
30 Exception::Exception(const Exception& rException)
\r
32 this->reason = rException.toString();
\r
36 Exception::Exception(const char* reason)
\r
38 this->reason = reason;
\r
42 Exception::~Exception()
\r
47 const char* Exception::toString(void) const
\r
49 return this->reason;
\r
53 const Exception& Exception::operator = (const Exception& rException)
\r
55 this->reason = rException.toString();
\r
61 }// namespace SimGrid
\r