diff --git a/dune/elasticity/materials/mooneyrivlindensity.hh b/dune/elasticity/materials/mooneyrivlindensity.hh
index 37ba2729ca0698bd1f8d7f890160f89669679aeb..a14f96fb7e99482aea5c93e95a83b9ea078a821f 100644
--- a/dune/elasticity/materials/mooneyrivlindensity.hh
+++ b/dune/elasticity/materials/mooneyrivlindensity.hh
@@ -88,7 +88,7 @@ public:
     field_type detF = gradient.determinant();
 
     if (detF < 0)
-      DUNE_THROW( Dune::Exception, "det(F) < 0, so it is not possible to calculate the MooneyRivlinEnergy.");
+      DUNE_THROW( Dune::MathError, "det(F) < 0, so it is not possible to calculate the MooneyRivlinEnergy.");
 
     // Add the local energy density
     field_type strainEnergy = 0;