Exception: Hanami::Assets::AssetMissingError

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/assets/errors.rb

Overview

Error raised when no asset can be found for a source path.

Since:

  • 2.1.0

Instance Method Summary collapse

Constructor Details

#initialize(source_path) ⇒ AssetMissingError

Returns a new instance of AssetMissingError.

Since:

  • 2.1.0



31
32
33
34
35
# File 'lib/hanami/assets/errors.rb', line 31

def initialize(source_path)
  super(<<~TEXT)
    No asset found for #{source_path.inspect}
  TEXT
end