managed-functions-1.0.0: Remote Management Framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Managed.Exception

Synopsis

Documentation

data AgentException Source #

Instances

Instances details
Eq AgentException Source # 
Instance details

Defined in Managed.Exception

Show AgentException Source # 
Instance details

Defined in Managed.Exception

Generic AgentException Source # 
Instance details

Defined in Managed.Exception

Associated Types

type Rep AgentException :: Type -> Type #

Exception AgentException Source # 
Instance details

Defined in Managed.Exception

type Rep AgentException Source # 
Instance details

Defined in Managed.Exception

type Rep AgentException = D1 ('MetaData "AgentException" "Managed.Exception" "managed-functions-1.0.0-inplace" 'False) ((C1 ('MetaCons "BadProbeID" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProbeID)) :+: C1 ('MetaCons "BadNumberOfArguments" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: (C1 ('MetaCons "NoParseArgument" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ProbeRuntimeException" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))))

throwM :: (MonadThrow m, Exception e) => e -> m a #

Throw an exception. Note that this throws when this action is run in the monad m, not when it is applied. It is a generalization of Control.Exception's throwIO.

Should satisfy the law:

throwM e >> f = throwM e