zeromq4-haskell-0.6.3: Bindings to ZeroMQ 4.x

Safe HaskellNone
LanguageHaskell98

System.ZMQ4.Internal.Error

Description

We use our own functions for throwing exceptions in order to get the actual error message via zmq_strerror. 0MQ defines additional error numbers besides those defined by the operating system, so zmq_strerror should be used in preference to strerror which is used by the standard throw* functions in Error.

Warning: This is an internal module and subject to change without notice.

Synopsis

Documentation

data ZMQError Source

ZMQError encapsulates information about errors, which occur when using the native 0MQ API, such as error number and message.

Constructors

ZMQError 

Fields

errno :: Int

Error number value.

source :: String

Source where this error originates from.

message :: String

Actual error message.

throwIf :: (a -> Bool) -> String -> IO a -> IO a Source

throwIf_ :: (a -> Bool) -> String -> IO a -> IO () Source

throwIfRetry :: (a -> Bool) -> String -> IO a -> IO a Source

throwIfRetry_ :: (a -> Bool) -> String -> IO a -> IO () Source

throwIfMinus1 :: (Eq a, Num a) => String -> IO a -> IO a Source

throwIfMinus1_ :: (Eq a, Num a) => String -> IO a -> IO () Source

throwIfNull :: String -> IO (Ptr a) -> IO (Ptr a) Source

throwIfMinus1Retry :: (Eq a, Num a) => String -> IO a -> IO a Source

throwIfMinus1Retry_ :: (Eq a, Num a) => String -> IO a -> IO () Source

throwIfRetryMayBlock :: (a -> Bool) -> String -> IO a -> IO b -> IO a Source

throwIfRetryMayBlock_ :: (a -> Bool) -> String -> IO a -> IO b -> IO () Source

throwIfMinus1RetryMayBlock :: (Eq a, Num a) => String -> IO a -> IO b -> IO a Source

throwIfMinus1RetryMayBlock_ :: (Eq a, Num a) => String -> IO a -> IO b -> IO () Source