Method: Aliyun::OSS::Error#initialize

Defined in:
lib/aliyun/oss/error.rb

#initialize(error, response = nil) ⇒ Error

Returns a new instance of Error.



31
32
33
34
35
36
# File 'lib/aliyun/oss/error.rb', line 31

def initialize(error, response = nil)
  @error     = error
  @response  = response
  @container = Aliyun::OSS
  find_or_create_exception!
end