Exception: OssException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OssException
- Defined in:
- lib/aliyunoss/oss_exception.rb
Instance Method Summary collapse
-
#initialize(http_response) ⇒ OssException
constructor
A new instance of OssException.
- #inspect ⇒ Object
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(http_response) ⇒ OssException
Returns a new instance of OssException.
2 3 4 |
# File 'lib/aliyunoss/oss_exception.rb', line 2 def initialize(http_response) @response = http_response end |
Instance Method Details
#inspect ⇒ Object
6 7 8 |
# File 'lib/aliyunoss/oss_exception.rb', line 6 def inspect "Status: #{@response.class.to_s}\nBody: #{@response.body}" end |
#message ⇒ Object
14 15 16 |
# File 'lib/aliyunoss/oss_exception.rb', line 14 def inspect end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/aliyunoss/oss_exception.rb', line 10 def to_s inspect end |