Exception: FileConvert::Exception::MissingConversionMimeType
- Inherits:
-
StandardError
- Object
- StandardError
- FileConvert::Exception::MissingConversionMimeType
- Defined in:
- lib/file_convert/exception.rb
Instance Method Summary collapse
-
#initialize(requested_mime_type, available_mime_types) ⇒ MissingConversionMimeType
constructor
A new instance of MissingConversionMimeType.
- #message ⇒ Object
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
#message ⇒ Object
10 11 12 13 14 15 |
# File 'lib/file_convert/exception.rb', line 10 def ''" The requested mime type '#{@requested_mime_type}' is not available. Available mime types: #{@available_mime_types.join(', ')}. "'' end |