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