Module: CZMQ::FFI::Errors
- Defined in:
- lib/czmq-ffi-gen/errors.rb
Overview
This is only used to be able to read get the last ZMQ error.
Class Method Summary collapse
-
.errno ⇒ String
Error code of the last (ZMQ) error.
-
.strerror ⇒ String
The string representation of the last (ZMQ) error.
Class Method Details
.errno ⇒ String
Returns error code of the last (ZMQ) error.
4 5 6 |
# File 'lib/czmq-ffi-gen/errors.rb', line 4 def self.errno CZMQ::FFI::LibZMQ.zmq_errno end |
.strerror ⇒ String
Returns the string representation of the last (ZMQ) error.
9 10 11 |
# File 'lib/czmq-ffi-gen/errors.rb', line 9 def self.strerror CZMQ::FFI::LibZMQ.zmq_strerror(CZMQ::FFI::LibZMQ.zmq_errno) end |