Exception: Senec::Cloud::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/senec/cloud/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/senec/cloud/error.rb', line 6

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/senec/cloud/error.rb', line 4

def status
  @status
end