diff --git a/src/exceptions.jl b/src/exceptions.jl
index bf6f31b194033af0cc671d788efaaf2d18749c2c..7bd62e82b53586756350fbe7c30569288ad3388d 100644
--- a/src/exceptions.jl
+++ b/src/exceptions.jl
@@ -1,4 +1,7 @@
 struct SingularException <: Exception end
 
-struct DggesException <: Exception end
+struct DggesException <: Exception
+    error_nbr::Int64
+end
 
+Base.showerror(io::IO, e::DggesException) = print(io, "error nbr", e.error_nbr)