Exception: Khoj::KhojException

Inherits:
Exception
  • Object
show all
Defined in:
lib/khoj.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ KhojException

Returns a new instance of KhojException.



13
14
15
16
# File 'lib/khoj.rb', line 13

def initialize(message)
  message = message['error'] if message.class == Hash
  super "[KHOJ] #{message}"
end