Exception: HP::Cloud::Exceptions::Base

Inherits:
Exception
  • Object
show all
Defined in:
lib/hpcloud/exceptions/base.rb

Direct Known Subclasses

General, NotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status = :general_error) ⇒ Base

Returns a new instance of Base.



28
29
30
31
# File 'lib/hpcloud/exceptions/base.rb', line 28

def initialize(message, status = :general_error)
  super(message)
  @status = status
end

Instance Attribute Details

#statusObject

Returns the value of attribute status.



26
27
28
# File 'lib/hpcloud/exceptions/base.rb', line 26

def status
  @status
end