Exception: Aws::InstanceProfileCredentials::Non200Response Private
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Aws::InstanceProfileCredentials::Non200Response
- Defined in:
- lib/aws-sdk-core/instance_profile_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
- #body ⇒ Object readonly private
- #status_code ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(status_code, body = nil) ⇒ Non200Response
constructor
private
A new instance of Non200Response.
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.
32 33 34 35 36 37 38 |
# File 'lib/aws-sdk-core/instance_profile_credentials.rb', line 32 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
#body ⇒ Object (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.
30 31 32 |
# File 'lib/aws-sdk-core/instance_profile_credentials.rb', line 30 def body @body end |
#status_code ⇒ Object (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.
30 31 32 |
# File 'lib/aws-sdk-core/instance_profile_credentials.rb', line 30 def status_code @status_code end |