Exception: Cloudinary::CarrierWave::UploadError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloudinary/carrier_wave/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, http_code) ⇒ UploadError

Returns a new instance of UploadError.



4
5
6
7
# File 'lib/cloudinary/carrier_wave/error.rb', line 4

def initialize(message, http_code)
  super(message)
  @http_code = http_code
end

Instance Attribute Details

#http_codeObject (readonly)

Returns the value of attribute http_code.



3
4
5
# File 'lib/cloudinary/carrier_wave/error.rb', line 3

def http_code
  @http_code
end