Exception: Deis::Error

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

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_status = nil, message = nil, data = nil) ⇒ Error

Returns a new instance of Error.



7
8
9
10
11
# File 'lib/deis_client.rb', line 7

def initialize(http_status = nil, message = nil, data = nil)
  @status = http_status
  @message = message
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/deis_client.rb', line 5

def data
  @data
end

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/deis_client.rb', line 5

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/deis_client.rb', line 5

def status
  @status
end