diff --git a/dune/gdt/exceptions.hh b/dune/gdt/exceptions.hh index 56140321100036dacb5e53fa7d51ce2b3b3ede37..db929b3f1c33d84e7bfdccec04df2ca213e1fec0 100644 --- a/dune/gdt/exceptions.hh +++ b/dune/gdt/exceptions.hh @@ -10,7 +10,6 @@ namespace Dune { namespace GDT { -namespace Exceptions { class operator_error : public Dune::Exception @@ -26,7 +25,6 @@ class projection_error : public operator_error }; -} // namespace Exceptions } // namespace GDT } // namespace Dune diff --git a/dune/gdt/local/operators/l2-projection.hh b/dune/gdt/local/operators/l2-projection.hh index 0dfa6a8dac77d68513a21bde69e9d818ef1fbe57..27faa2023d87360152f8fa158c02158fe7f823d0 100644 --- a/dune/gdt/local/operators/l2-projection.hh +++ b/dune/gdt/local/operators/l2-projection.hh @@ -89,7 +89,7 @@ public: try { Stuff::LA::Solver<Stuff::LA::CommonDenseMatrix<R>>(local_matrix).apply(local_vector, local_solution); } catch (Stuff::Exceptions::linear_solver_failed& ee) { - DUNE_THROW(Exceptions::projection_error, + DUNE_THROW(projection_error, "L2 projection failed because a local matrix could not be inverted!\n\n" << "This was the original error: " << ee.what()); diff --git a/dune/gdt/operators/darcy.hh b/dune/gdt/operators/darcy.hh index 5e3ad9ba5cd8111cddbfadee571da85a13073046..9bab9ef81dcb34d0d1a651be385aca6bd0840790 100644 --- a/dune/gdt/operators/darcy.hh +++ b/dune/gdt/operators/darcy.hh @@ -166,7 +166,7 @@ private: try { Stuff::LA::Solver<MatrixType>(lhs).apply(rhs, range.vector()); } catch (Stuff::Exceptions::linear_solver_failed& ee) { - DUNE_THROW(Exceptions::operator_error, + DUNE_THROW(operator_error, "Application of the Darcy operator failed because a matrix could not be inverted!\n\n" << "This was the original error: " << ee.what()); diff --git a/dune/gdt/projections/l2-global.hh b/dune/gdt/projections/l2-global.hh index c8db61817c92473bd2370f292a16aec912995067..24b240743ff723754398fedbb73fb997db839a56 100644 --- a/dune/gdt/projections/l2-global.hh +++ b/dune/gdt/projections/l2-global.hh @@ -89,7 +89,7 @@ public: try { Stuff::LA::Solver<MatrixType>(lhs_operator_.matrix()).apply(rhs_functional_.vector(), range_.vector()); } catch (Stuff::Exceptions::linear_solver_failed& ee) { - DUNE_THROW(Exceptions::projection_error, + DUNE_THROW(projection_error, "L2 projection failed because a global matrix could not be inverted!\n\n" << "This was the original error: " << ee.what()); diff --git a/dune/gdt/prolongations/l2-global.hh b/dune/gdt/prolongations/l2-global.hh index 6078b6a49206a2b01d06e1e879a2553b24fe2810..5230ef16909cb09c41f047381e166d42a0a3fc6e 100644 --- a/dune/gdt/prolongations/l2-global.hh +++ b/dune/gdt/prolongations/l2-global.hh @@ -68,7 +68,7 @@ public: try { BaseOperatorType::apply(); } catch (Stuff::Exceptions::reinterpretation_error& ee) { - DUNE_THROW(Exceptions::prolongation_error, + DUNE_THROW(prolongation_error, "This prolongation (using a global L2 projection) failed, because the source could not be " << "reinterpreted on the given grid view!\n" << "This was the original error:\n\n" diff --git a/dune/gdt/prolongations/l2-local.hh b/dune/gdt/prolongations/l2-local.hh index a0158aa082fe9ee636b0c0648343c80f3601299f..8e8b8b057bc5674029dd0523ed85096cc91bff27 100644 --- a/dune/gdt/prolongations/l2-local.hh +++ b/dune/gdt/prolongations/l2-local.hh @@ -77,7 +77,7 @@ public: try { BaseOperatorType::apply(); } catch (Stuff::Exceptions::reinterpretation_error& ee) { - DUNE_THROW(Exceptions::prolongation_error, + DUNE_THROW(prolongation_error, "This prolongation (using a local L2 projection) failed, because the source could not be reinterpreted" << " on the given grid view!\n" << "This was the original error:\n\n" diff --git a/dune/gdt/prolongations/lagrange.hh b/dune/gdt/prolongations/lagrange.hh index e46198d647476339c6c961051ec2cd19aec5f728..fc4215f31e8316a8d0353bfd411b7682a4f8e636 100644 --- a/dune/gdt/prolongations/lagrange.hh +++ b/dune/gdt/prolongations/lagrange.hh @@ -72,7 +72,7 @@ public: try { BaseOperatorType::apply(); } catch (Stuff::Exceptions::reinterpretation_error& ee) { - DUNE_THROW(Exceptions::prolongation_error, + DUNE_THROW(prolongation_error, "This prolongation (using a lagrange projection) failed, because the source could not be reinterpreted" << " on the given grid view!\n" << "This was the original error:\n\n"