Sha256: 1c5db3f3e24aedc314e781d157beb8c57631307a4fc339e355301c538c367167

Contents?: true

Size: 388 Bytes

Versions: 23

Compression:

Stored size: 388 Bytes

Contents

# 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

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
propshaft-1.1.0 lib/propshaft/errors.rb
propshaft-1.0.1 lib/propshaft/errors.rb
propshaft-1.0.0 lib/propshaft/errors.rb
propshaft-0.9.1 lib/propshaft/errors.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/propshaft-0.6.4/lib/propshaft/errors.rb
propshaft-0.8.0 lib/propshaft/errors.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/propshaft-0.6.4/lib/propshaft/errors.rb
propshaft-0.7.0 lib/propshaft/errors.rb
propshaft-0.6.4 lib/propshaft/errors.rb
propshaft-0.6.3 lib/propshaft/errors.rb
propshaft-0.6.2 lib/propshaft/errors.rb
propshaft-0.6.1 lib/propshaft/errors.rb
propshaft-0.6.0 lib/propshaft/errors.rb
propshaft-0.5.0 lib/propshaft/errors.rb
propshaft-0.4.4 lib/propshaft/errors.rb
propshaft-0.4.3 lib/propshaft/errors.rb
propshaft-0.4.2 lib/propshaft/errors.rb
propshaft-0.4.1 lib/propshaft/errors.rb
propshaft-0.4.0 lib/propshaft/errors.rb
propshaft-0.3.1 lib/propshaft/errors.rb