Exception: Aws::ECSCredentials::Non200Response Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/aws-sdk-core/ecs_credentials.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, body = nil) ⇒ Non200Response

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Non200Response.



21
22
23
24
25
26
27
# File 'lib/aws-sdk-core/ecs_credentials.rb', line 21

def initialize(status_code, body = nil)
  @status_code = status_code
  @body = body
  msg = "HTTP #{status_code}"
  msg += ": #{body}" if body && !body.empty?
  super(msg)
end

Instance Attribute Details

#bodyObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
# File 'lib/aws-sdk-core/ecs_credentials.rb', line 19

def body
  @body
end

#status_codeObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
# File 'lib/aws-sdk-core/ecs_credentials.rb', line 19

def status_code
  @status_code
end