Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AgentException
- throwM :: (MonadThrow m, Exception e) => e -> m a
- explain :: AgentException -> String
- badNumberOfArgs :: Int -> [a] -> AgentException
- noParseArg :: AgentException
- probeRuntimeException :: SomeException -> AgentException
- badProbeID :: ProbeID -> AgentException
Documentation
data AgentException Source #
Instances
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
explain :: AgentException -> String Source #
badNumberOfArgs :: Int -> [a] -> AgentException Source #
badProbeID :: ProbeID -> AgentException Source #