Exception: FileConvert::Exception::UploadedFileDataError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/file_convert/exception.rb

Instance Method Summary collapse

Constructor Details

#initialize(upload_result) ⇒ UploadedFileDataError

Returns a new instance of UploadedFileDataError.



19
20
21
22
# File 'lib/file_convert/exception.rb', line 19

def initialize(upload_result)
  super()
  @upload_result = upload_result
end

Instance Method Details

#messageObject



24
25
26
27
28
# File 'lib/file_convert/exception.rb', line 24

def message
  ''"
    An error occured while uploading: #{@upload_result.error_message}.
  "''
end