Exception: Bisques::AwsActionError
- Defined in:
- lib/bisques/aws_connection.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, code, message, status) ⇒ AwsActionError
constructor
A new instance of AwsActionError.
- #to_s ⇒ Object
Constructor Details
#initialize(type, code, message, status) ⇒ AwsActionError
Returns a new instance of AwsActionError.
9 10 11 12 |
# File 'lib/bisques/aws_connection.rb', line 9 def initialize(type, code, , status) @type, @code, @message, @status = type, code, , status super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/bisques/aws_connection.rb', line 7 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/bisques/aws_connection.rb', line 7 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/bisques/aws_connection.rb', line 7 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/bisques/aws_connection.rb', line 7 def type @type end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/bisques/aws_connection.rb', line 14 def to_s "HTTP #{status}: #{type} #{code} #{}" end |