X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2FException.cpp;fp=source%2Fcore%2FException.cpp;h=d057e2c5d3dae4266d98b446bdc42a0dfb2002dc;hp=3bb7ad03985038503033fae8270e6214ab109d44;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/Exception.cpp b/source/core/Exception.cpp index 3bb7ad0..d057e2c 100644 --- a/source/core/Exception.cpp +++ b/source/core/Exception.cpp @@ -41,7 +41,7 @@ Exception::Exception(const Exception& other) { // Operador copia //----------------------------------------------------------------------- Exception& Exception::operator = (const Exception & other) -throw() { +{ if(this != &other) { m_name = other.m_name; m_text = other.m_text; @@ -54,7 +54,7 @@ throw() { } std::string Exception::asString() const -throw() { +{ std::string result; char n [32]; sprintf(n, " (%d) ] ", m_fromLine); @@ -68,6 +68,6 @@ throw() { } void Exception::trace() const -throw() { +{ Logger::write(Logger::Error, m_name.c_str(), m_text.c_str(), m_fromFile.c_str(), m_fromLine); // JEDS 24/09/2003 }