Exception: RHC::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rhc/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = 1) ⇒ Exception

Returns a new instance of Exception.



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

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/rhc/exceptions.rb', line 3

def code
  @code
end