Exception: BZMQ::SocketError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bzmq/socket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, error_code = -1)) ⇒ SocketError

Returns a new instance of SocketError.



51
52
53
54
# File 'lib/bzmq/socket.rb', line 51

def initialize(message, error_code=-1)
  @error_code = error_code
  super(message)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



50
51
52
# File 'lib/bzmq/socket.rb', line 50

def error_code
  @error_code
end