Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
addCallStackToException :: CallStack -> AnnotatedException exception -> AnnotatedException exceptionannotated-exception Control.Exception.Annotated Adds a CallStack to the given AnnotatedException. This function will search through the existing annotations, and it will not add a second CallStack to the list. Instead, it will append the contents of the given CallStack to the existing one. This mirrors the behavior of the way HasCallStack actually works.
annotatedExceptionCallStack :: AnnotatedException exception -> Maybe CallStackannotated-exception Control.Exception.Annotated Retrieves the CallStack from an AnnotatedException if one is present. The library maintains an internal check that a single CallStack is present in the list, so this only returns the first one found. If you have added a CallStack directly to the [Annotation], then this will likely break.
displayException :: Exception e => e -> Stringannotated-exception Control.Exception.Annotated Render this exception value in a human-friendly manner. Default implementation: show.
fromException :: Exception e => SomeException -> Maybe eannotated-exception Control.Exception.Annotated No documentation available.
toException :: Exception e => e -> SomeExceptionannotated-exception Control.Exception.Annotated toException should produce a SomeException with no attached ExceptionContext.
data
AnnotatedException exceptionannotated-exception Control.Exception.Annotated.UnliftIO The AnnotatedException type wraps an exception with a [Annotation]. This can provide a sort of a manual stack trace with programmer provided data.
AnnotatedException :: [Annotation] -> exception -> AnnotatedException exceptionannotated-exception Control.Exception.Annotated.UnliftIO No documentation available.
-
annotated-exception Control.Exception.Annotated.UnliftIO The SomeException type is the root of the exception type hierarchy. When an exception of type e is thrown, behind the scenes it is encapsulated in a SomeException.
SomeException :: e -> SomeExceptionannotated-exception Control.Exception.Annotated.UnliftIO No documentation available.
addCallStackToException :: CallStack -> AnnotatedException exception -> AnnotatedException exceptionannotated-exception Control.Exception.Annotated.UnliftIO Adds a CallStack to the given AnnotatedException. This function will search through the existing annotations, and it will not add a second CallStack to the list. Instead, it will append the contents of the given CallStack to the existing one. This mirrors the behavior of the way HasCallStack actually works.