Exception: Rhc::Rest::BaseException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rhc-rest/exceptions/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil) ⇒ BaseException

Returns a new instance of BaseException.



5
6
7
8
# File 'lib/rhc-rest/exceptions/exceptions.rb', line 5

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/rhc-rest/exceptions/exceptions.rb', line 4

def code
  @code
end