ghc-9.10.1: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Utils.Exception

Documentation

class (Typeable e, Show e) => Exception e where #

Minimal complete definition

Nothing

Instances

Instances details
Exception Timeout

Since: base-4.7.0.0

Instance details

Defined in System.Timeout

Exception SizeOverflowException 
Instance details

Defined in Data.ByteString.Internal.Type

Exception GhcApiError Source # 
Instance details

Defined in GHC

Exception IOEnvFailure Source # 
Instance details

Defined in GHC.Data.IOEnv

Exception SourceError Source # 
Instance details

Defined in GHC.Types.SourceError

Exception GhcException Source # 
Instance details

Defined in GHC.Utils.Panic

Exception PlainGhcException Source # 
Instance details

Defined in GHC.Utils.Panic.Plain

Exception Void 
Instance details

Defined in GHC.Internal.Exception.Type

Exception NestedAtomically 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception NoMatchingContinuationPrompt 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception NoMethodError 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception NonTermination 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception PatternMatchFail 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception RecConError 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception RecSelError 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception RecUpdError 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception TypeError 
Instance details

Defined in GHC.Internal.Control.Exception.Base

Exception Dynamic 
Instance details

Defined in GHC.Internal.Data.Dynamic

Exception ErrorCall 
Instance details

Defined in GHC.Internal.Exception

Exception ArithException 
Instance details

Defined in GHC.Internal.Exception.Type

Exception SomeException 
Instance details

Defined in GHC.Internal.Exception.Type

Exception AllocationLimitExceeded 
Instance details

Defined in GHC.Internal.IO.Exception

Exception ArrayException 
Instance details

Defined in GHC.Internal.IO.Exception

Exception AssertionFailed 
Instance details

Defined in GHC.Internal.IO.Exception

Exception AsyncException 
Instance details

Defined in GHC.Internal.IO.Exception

Exception BlockedIndefinitelyOnMVar 
Instance details

Defined in GHC.Internal.IO.Exception

Exception BlockedIndefinitelyOnSTM 
Instance details

Defined in GHC.Internal.IO.Exception

Exception CompactionFailed 
Instance details

Defined in GHC.Internal.IO.Exception

Exception Deadlock 
Instance details

Defined in GHC.Internal.IO.Exception

Exception ExitCode 
Instance details

Defined in GHC.Internal.IO.Exception

Exception FixIOException 
Instance details

Defined in GHC.Internal.IO.Exception

Exception IOException 
Instance details

Defined in GHC.Internal.IO.Exception

Exception SomeAsyncException 
Instance details

Defined in GHC.Internal.IO.Exception

Exception GHCiQException 
Instance details

Defined in GHCi.TH

Exception a => Exception (ExceptionWithContext a) 
Instance details

Defined in GHC.Internal.Exception.Type

Exception e => Exception (NoBacktrace e) 
Instance details

Defined in GHC.Internal.Exception.Type

Methods

toException :: NoBacktrace e -> SomeException #

fromException :: SomeException -> Maybe (NoBacktrace e) #

displayException :: NoBacktrace e -> String #

backtraceDesired :: NoBacktrace e -> Bool #

throw :: forall a e. (?callStack :: CallStack, Exception e) => e -> a #

data MaskingState #

Instances

Instances details
NFData MaskingState

Since: deepseq-1.4.4.0

Instance details

Defined in Control.DeepSeq

Methods

rnf :: MaskingState -> () Source #

Show MaskingState 
Instance details

Defined in GHC.Internal.IO

Eq MaskingState 
Instance details

Defined in GHC.Internal.IO

catch :: Exception e => IO a -> (e -> IO a) -> IO a #

annotateIO :: ExceptionAnnotation e => e -> IO a -> IO a #

throwIO :: (HasCallStack, Exception e) => e -> IO a #

interruptible :: IO a -> IO a #

onException :: IO a -> IO b -> IO a #

mask_ :: IO a -> IO a #

mask :: ((forall a. IO a -> IO a) -> IO b) -> IO b #

uninterruptibleMask :: ((forall a. IO a -> IO a) -> IO b) -> IO b #

bracket :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c #

finally :: IO a -> IO b -> IO a #

evaluate :: a -> IO a #

throwTo :: Exception e => ThreadId -> e -> IO () #

catchJust :: Exception e => (e -> Maybe b) -> IO a -> (b -> IO a) -> IO a #

handle :: Exception e => (e -> IO a) -> IO a -> IO a #

handleJust :: Exception e => (e -> Maybe b) -> (b -> IO a) -> IO a -> IO a #

mapException :: (Exception e1, Exception e2) => (e1 -> e2) -> a -> a #

try :: Exception e => IO a -> IO (Either e a) #

tryJust :: Exception e => (e -> Maybe b) -> IO a -> IO (Either b a) #

bracket_ :: IO a -> IO b -> IO c -> IO c #

bracketOnError :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c #

data Handler a #

Constructors

Exception e => Handler (e -> IO a) 

Instances

Instances details
Functor Handler 
Instance details

Defined in GHC.Internal.Control.Exception

Methods

fmap :: (a -> b) -> Handler a -> Handler b #

(<$) :: a -> Handler b -> Handler a #

catches :: IO a -> [Handler a] -> IO a #

catchIO :: IO a -> (IOException -> IO a) -> IO a Source #

handleIO :: (IOException -> IO a) -> IO a -> IO a Source #