A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://hackage.haskell.org/package/base/docs/Control-Exception-Context.html below:

Control.Exception.Context

Documentation

data ExceptionContext Source #

Exception context represents a list of ExceptionAnnotations. These are attached to SomeExceptions via 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

ExceptionContext [SomeExceptionAnnotation]   Instances Instances details Monoid ExceptionContext Source #   Instance details

Defined in GHC.Internal.Exception.Context

Methods

mempty :: ExceptionContext Source #

mappend :: ExceptionContext -> ExceptionContext -> ExceptionContext Source #

mconcat :: [ExceptionContext] -> ExceptionContext Source #

Semigroup ExceptionContext Source #   Instance details

Defined in GHC.Internal.Exception.Context

Methods

(<>) :: ExceptionContext -> ExceptionContext -> ExceptionContext Source #

sconcat :: NonEmpty ExceptionContext -> ExceptionContext Source #

stimes :: Integral b => b -> ExceptionContext -> ExceptionContext Source #

emptyExceptionContext :: ExceptionContext Source #

An ExceptionContext containing no annotations.

Since: base-4.20.0.0

addExceptionAnnotation :: ExceptionAnnotation a => a -> ExceptionContext -> ExceptionContext Source #

Construct a singleton ExceptionContext from an ExceptionAnnotation.

Since: base-4.20.0.0

Destructuring

getExceptionAnnotations :: ExceptionAnnotation a => ExceptionContext -> [a] Source #

Retrieve all ExceptionAnnotations of the given type from an ExceptionContext.

Since: base-4.20.0.0

getAllExceptionAnnotations :: ExceptionContext -> [SomeExceptionAnnotation] Source #

displayExceptionContext :: ExceptionContext -> String Source #

Render ExceptionContext to a human-readable String.

Since: base-4.20.0.0


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4