Exception: Muxr::Dispatcher::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/muxr/control_server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code: ControlServer::INVALID_PARAMS) ⇒ Error

Returns a new instance of Error.



317
318
319
320
# File 'lib/muxr/control_server.rb', line 317

def initialize(message, code: ControlServer::INVALID_PARAMS)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



316
317
318
# File 'lib/muxr/control_server.rb', line 316

def code
  @code
end