Exception: S33r::S3Exception::S3OriginatedException
- Inherits:
-
Exception
- Object
- Exception
- S33r::S3Exception::S3OriginatedException
- Defined in:
- lib/s33r/s33r_exception.rb
Overview
For errors originated by S3
Instance Attribute Summary collapse
-
#s3_code ⇒ Object
readonly
Returns the value of attribute s3_code.
-
#s3_message ⇒ Object
readonly
Returns the value of attribute s3_message.
Instance Method Summary collapse
-
#initialize(code = nil, message = nil) ⇒ S3OriginatedException
constructor
A new instance of S3OriginatedException.
- #to_s ⇒ Object
Constructor Details
#initialize(code = nil, message = nil) ⇒ S3OriginatedException
Returns a new instance of S3OriginatedException.
8 9 10 11 |
# File 'lib/s33r/s33r_exception.rb', line 8 def initialize(code=nil, =nil) @s3_code = code @s3_message = end |
Instance Attribute Details
#s3_code ⇒ Object (readonly)
Returns the value of attribute s3_code.
6 7 8 |
# File 'lib/s33r/s33r_exception.rb', line 6 def s3_code @s3_code end |
#s3_message ⇒ Object (readonly)
Returns the value of attribute s3_message.
6 7 8 |
# File 'lib/s33r/s33r_exception.rb', line 6 def @s3_message end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/s33r/s33r_exception.rb', line 13 def to_s "S3 returned an error\nError code: #{@s3_code}; error message: #{@s3_message}" end |