Exception: Rhc::Rest::BaseException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Rhc::Rest::BaseException
- Defined in:
- lib/rhc-rest/exceptions/exceptions.rb
Direct Known Subclasses
ClientErrorException, ResourceAccessException, ServerErrorException
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil, code = nil) ⇒ BaseException
constructor
A new instance of BaseException.
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(=nil, code=nil) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/rhc-rest/exceptions/exceptions.rb', line 4 def code @code end |