Exception: ZMQ::ContextError

Inherits:
ZeroMQError show all
Defined in:
lib/ffi-rzmq/exceptions.rb

Instance Attribute Summary

Attributes inherited from ZeroMQError

#error_code, #message, #result_code, #source

Instance Method Summary collapse

Methods inherited from ZeroMQError

#initialize

Constructor Details

This class inherits a constructor from ZMQ::ZeroMQError

Instance Method Details

#einval?Boolean

True when the exception was raised due to the library returning EINVAL.

Occurs when he number of app_threads requested is less than one, or the number of io_threads requested is negative.

Returns:

  • (Boolean)


28
# File 'lib/ffi-rzmq/exceptions.rb', line 28

def einval?() EINVAL == @error_code; end

#eterm?Boolean

True when the exception was raised due to the library returning ETERM.

The associated context was terminated.

Returns:

  • (Boolean)


35
# File 'lib/ffi-rzmq/exceptions.rb', line 35

def eterm?() ETERM == @error_code; end