Exception: Bisques::AwsActionError

Inherits:
Error
  • Object
show all
Defined in:
lib/bisques/aws_connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message, status)
  @type, @code, @message, @status = type, code, message, status
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/bisques/aws_connection.rb', line 7

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/bisques/aws_connection.rb', line 7

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/bisques/aws_connection.rb', line 7

def status
  @status
end

#typeObject (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_sObject



14
15
16
# File 'lib/bisques/aws_connection.rb', line 14

def to_s
  "HTTP #{status}: #{type} #{code} #{message}"
end