Exception: Aws::ECSCredentials::Non200Response Private
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Aws::ECSCredentials::Non200Response
- 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
- #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.
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
#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.
19 20 21 |
# File 'lib/aws-sdk-core/ecs_credentials.rb', line 19 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.
19 20 21 |
# File 'lib/aws-sdk-core/ecs_credentials.rb', line 19 def status_code @status_code end |