Exception: FileConvert::Exception::MissingConversionMimeType

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

Instance Method Summary collapse

Constructor Details

#initialize(requested_mime_type, available_mime_types) ⇒ MissingConversionMimeType

Returns a new instance of MissingConversionMimeType.



4
5
6
7
8
# File 'lib/file_convert/exception.rb', line 4

def initialize(requested_mime_type, available_mime_types)
  super()
  @requested_mime_type = requested_mime_type
  @available_mime_types = available_mime_types
end

Instance Method Details

#messageObject



10
11
12
13
14
15
# File 'lib/file_convert/exception.rb', line 10

def message
  ''"
    The requested mime type '#{@requested_mime_type}' is not available.
    Available mime types: #{@available_mime_types.join(', ')}.
  "''
end