Exception context represents a list of ExceptionAnnotations. These are
attached to SomeExceptions via Control.Exception.addExceptionContext and
can be used to capture various ad-hoc metadata about the exception including
backtraces and application-specific context.
ExceptionContexts can be merged via concatenation using the Semigroup instance or mergeExceptionContext.
Note that GHC will automatically solve implicit constraints of type ExceptionContext with emptyExceptionContext.
Constructors
Instances2Semigroup, Monoid
Semigroup ExceptionContextDefined in ghc-internal-9.1003.0 · GHC.Internal.Exception.ContextMonoid ExceptionContextDefined in ghc-internal-9.1003.0 · GHC.Internal.Exception.Context