Exception: Knu::InvalidRequest

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

Direct Known Subclasses

InvalidQuery

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ InvalidRequest

Returns a new instance of InvalidRequest.



7
8
9
10
# File 'lib/knu/knu.rb', line 7

def initialize(code, message)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/knu/knu.rb', line 6

def code
  @code
end