Sha256: fd0fd63e1d934aaed8629d4789f99bcde59dadfd9bfe7b12b5b72d3ca26c15d4

Contents?: true

Size: 821 Bytes

Versions: 35

Compression:

Stored size: 821 Bytes

Contents

# frozen_string_literal: true

module Nanoc
  module RuleDSL
    module Errors
      # Error that is raised when no rules file can be found in the current
      # working directory.
      class NoRulesFileFound < ::Nanoc::Core::Error
        def initialize
          super('This site does not have a rules file, which is required for Nanoc sites.')
        end
      end

      # Error that is raised when no compilation rule that can be applied to the
      # current item can be found.
      class NoMatchingCompilationRuleFound < ::Nanoc::Core::Error
        # @param [Nanoc::Core::Item] item The item for which no compilation rule
        #   could be found
        def initialize(item)
          super("No compilation rules were found for the “#{item.identifier}” item.")
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
nanoc-4.13.3 lib/nanoc/rule_dsl/errors.rb
nanoc-4.13.2 lib/nanoc/rule_dsl/errors.rb
nanoc-4.13.1 lib/nanoc/rule_dsl/errors.rb
nanoc-4.13.0 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.21 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.20 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.19 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.18 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.17 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.16 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.15 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.14 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.13 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.12 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.11 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.10 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.9 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.8 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.7 lib/nanoc/rule_dsl/errors.rb
nanoc-4.12.6 lib/nanoc/rule_dsl/errors.rb