Class: Baleen::Message::Exception

Inherits:
Base
  • Object
show all
Defined in:
lib/baleen/message/exception.rb

Instance Method Summary collapse

Methods inherited from Base

#results

Methods included from Serializable

deserialize, #dup, #method_missing, #params, symbolize_keys, #to_json

Constructor Details

#initialize(opt) ⇒ Exception

Returns a new instance of Exception.



7
8
9
10
# File 'lib/baleen/message/exception.rb', line 7

def initialize(opt)
  super()
  @params[:message] = opt[:message]
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Baleen::Serializable

Instance Method Details



16
17
18
# File 'lib/baleen/message/exception.rb', line 16

def print_message
  hl_error message
end

#terminate?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/baleen/message/exception.rb', line 12

def terminate?
  true
end