Safe Haskell | None |
---|---|
Language | Haskell98 |
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.
- data ZMQError = ZMQError {}
- throwError :: String -> IO a
- throwIf :: (a -> Bool) -> String -> IO a -> IO a
- throwIf_ :: (a -> Bool) -> String -> IO a -> IO ()
- throwIfRetry :: (a -> Bool) -> String -> IO a -> IO a
- throwIfRetry_ :: (a -> Bool) -> String -> IO a -> IO ()
- throwIfMinus1 :: (Eq a, Num a) => String -> IO a -> IO a
- throwIfMinus1_ :: (Eq a, Num a) => String -> IO a -> IO ()
- throwIfNull :: String -> IO (Ptr a) -> IO (Ptr a)
- throwIfMinus1Retry :: (Eq a, Num a) => String -> IO a -> IO a
- throwIfMinus1Retry_ :: (Eq a, Num a) => String -> IO a -> IO ()
- throwIfRetryMayBlock :: (a -> Bool) -> String -> IO a -> IO b -> IO a
- throwIfRetryMayBlock_ :: (a -> Bool) -> String -> IO a -> IO b -> IO ()
- throwIfMinus1RetryMayBlock :: (Eq a, Num a) => String -> IO a -> IO b -> IO a
- throwIfMinus1RetryMayBlock_ :: (Eq a, Num a) => String -> IO a -> IO b -> IO ()
- zmqErrnoMessage :: CInt -> IO String
- zmqErrno :: IO Errno