// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
* @p{DeclException*} macros with the @p{throw}
* mechanism or the @p{AssertThrow} macro.
*/
- virtual const char * what () const;
+ virtual const char * what () const throw ();
protected:
/**
// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
const int l,
const char *func,
const char *c,
- const char *e) {
+ const char *e)
+{
file = f;
line = l;
function = func;
};
-void ExceptionBase::PrintExcData (ostream &out) const {
+
+void ExceptionBase::PrintExcData (ostream &out) const
+{
out << "An error occurred in line <" << line
<< "> of file <" << file
<< "> in function" << endl
};
-void ExceptionBase::PrintInfo (ostream &out) const {
+
+void ExceptionBase::PrintInfo (ostream &out) const
+{
out << "(none)" << endl;
};
-const char * ExceptionBase::what () const {
+
+const char * ExceptionBase::what () const throw ()
+{
// have a place where to store the
// description of the exception as a char *
//