Skip to content
Snippets Groups Projects
Commit ca93ae6d authored by Jens Nolte's avatar Jens Nolte
Browse files

Implement displayException with better message for DisposeException

parent a3243de3
No related branches found
No related tags found
No related merge requests found
Pipeline #2525 passed
...@@ -62,7 +62,9 @@ import Quasar.Utils.Exceptions ...@@ -62,7 +62,9 @@ import Quasar.Utils.Exceptions
data DisposeException = DisposeException SomeException data DisposeException = DisposeException SomeException
deriving stock Show deriving stock Show
deriving anyclass Exception
instance Exception DisposeException where
displayException (DisposeException inner) = "Exception was thrown while disposing: " <> displayException inner
data FailedToRegisterResource = FailedToRegisterResource data FailedToRegisterResource = FailedToRegisterResource
deriving stock (Eq, Show) deriving stock (Eq, Show)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment