class Darkroom::AssetNotFoundError

Error class used when an asset requested explicitly or specified as a dependency of another doesn't exist.

Public Class Methods

new(path, source_path = nil, source_line_num = nil) click to toggle source

Creates a new instance.

  • path - Path of asset that doesn't exist.

  • source_path - Path of the asset that contains the error (optional).

  • source_line_num - Line number in the asset where the error is located (optional).

Calls superclass method Darkroom::AssetError::new
# File lib/darkroom/errors/asset_not_found_error.rb, line 18
def initialize(path, source_path = nil, source_line_num = nil)
  super('Asset not found', path, source_path, source_line_num)
end