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

Class Method Details

.errnoString

Returns error code of the last (ZMQ) error.

Returns:

  • (String)

    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

.strerrorString

Returns the string representation of the last (ZMQ) error.

Returns:

  • (String)

    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