File: errors.rb

package info (click to toggle)
ruby-propshaft 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 172 kB
  • sloc: ruby: 782; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Propshaft
  # Generic base class for all Propshaft exceptions.
  class Error < StandardError; end

  # Raised when LoadPath cannot find the requested asset
  class MissingAssetError < Error
    def initialize(path)
      super
      @path = path
    end

    def message
      "The asset '#{@path}' was not found in the load path."
    end
  end
end