Exception: RHC::Rest::Exception
- Defined in:
- lib/rhc/rest.rb
Direct Known Subclasses
AuthorizationsNotSupported, ClientErrorException, ConnectionException, DownloadingCartridgesNotSupported, InitialGitUrlNotSupported, MultipleCartridgeCreationNotSupported, ResourceAccessException, ServerErrorException, SslCertificatesNotSupported
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil, code = 1) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(message = nil, code = 1) ⇒ Exception
Returns a new instance of Exception.
26 27 28 29 |
# File 'lib/rhc/rest.rb', line 26 def initialize(=nil, code=1) super() @code = (Integer(code) rescue nil) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
25 26 27 |
# File 'lib/rhc/rest.rb', line 25 def code @code end |