Exception: Darkroom::UnrecognizedExtensionError

Inherits:
AssetError
  • Object
show all
Defined in:
lib/darkroom/errors/unrecognized_extension_error.rb

Overview

Error class used when a reference is made to a file with an unrecognized extension.

Instance Attribute Summary

Attributes inherited from AssetError

#detail, #source_line_num, #source_path

Instance Method Summary collapse

Constructor Details

#initialize(file, source_path = nil, source_line_num = nil) ⇒ UnrecognizedExtensionError

Public: Create a new instance.

file - String file path with the unrecognized extension. source_path - String path of the asset that contains the error. source_line_num - Integer line number in the asset file where the error is located.



13
14
15
# File 'lib/darkroom/errors/unrecognized_extension_error.rb', line 13

def initialize(file, source_path = nil, source_line_num = nil)
  super('File extension not recognized', file, source_path, source_line_num)
end