X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b1ec3c5445076d8f5827f850a9a5e9ea4853696..d9f6a4409b58ac98618a4b646af874f06ceac856:/src/cxx/Exception.cxx diff --git a/src/cxx/Exception.cxx b/src/cxx/Exception.cxx index 924eab874c..c314f13f7c 100644 --- a/src/cxx/Exception.cxx +++ b/src/cxx/Exception.cxx @@ -1,48 +1,64 @@ -#include "Exception.hpp" - -namespace SimGrid -{ - namespace Msg - { - - Exception::Exception() - { - reason = "Unknown reason"; - } - - - Exception::Exception(const Exception& rException) - { - this->reason = rException.toString(); - } - - - Exception::Exception(const char* reason) - { - this->reason = reason; - } - - - Exception::~Exception() - { - // NOTHING TODO - } - - const char* Exception::toString(void) const - { - return this->reason; - } - - - const Exception& Exception::operator = (const Exception& rException) - { - this->reason = rException.toString(); - return *this; - } - - } // namespace Msg - -}// namespace SimGrid - - - +/* + * Exception.cxx + * + * Copyright 2006,2007 Martin Quinson, Malek Cherier + * All right reserved. + * + * This program is free software; you can redistribute + * it and/or modify it under the terms of the license + *(GNU LGPL) which comes with this package. + * + */ + + /* Exception member functions implementation. + * The base class of all the types of exceptions of SimGrid::Msg. + */ + +#include + +namespace SimGrid +{ + namespace Msg + { + + Exception::Exception() + { + reason = "Unknown reason"; + } + + + Exception::Exception(const Exception& rException) + { + this->reason = rException.toString(); + } + + + Exception::Exception(const char* reason) + { + this->reason = reason; + } + + + Exception::~Exception() + { + // NOTHING TODO + } + + const char* Exception::toString(void) const + { + return this->reason; + } + + + const Exception& Exception::operator = (const Exception& rException) + { + this->reason = rException.toString(); + return *this; + } + + } // namespace Msg + +}// namespace SimGrid + + +