Sha256: c3e0f3f1faf7c668733c8a192b421f06acf64846fe60974109e45bed7d3db6d4

Contents?: true

Size: 545 Bytes

Versions: 20

Compression:

Stored size: 545 Bytes

Contents

module Roadie
  # Raised when a stylesheet specified for inlining is not present.
  # You can access the target filename via #filename.
  class CSSFileNotFound < StandardError
    attr_reader :filename, :guess

    def initialize(filename, guess = nil)
      @filename = filename
      @guess = guess
      super(build_message)
    end

    private
      def build_message
        if guess
          "Could not find #{filename} (guessed from #{guess.inspect})"
        else
          "Could not find #{filename}"
        end
      end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
roadie-2.4.3 lib/roadie/css_file_not_found.rb
md-roadie-2.4.2.md.1 lib/roadie/css_file_not_found.rb
roadie-2.4.2 lib/roadie/css_file_not_found.rb
roadie-2.4.1 lib/roadie/css_file_not_found.rb
roadie-2.4.0 lib/roadie/css_file_not_found.rb
roadie-2.3.4 lib/roadie/css_file_not_found.rb
roadie-2.3.3 lib/roadie/css_file_not_found.rb
roadie-2.3.2 lib/roadie/css_file_not_found.rb
roadie-2.3.1 lib/roadie/css_file_not_found.rb
roadie-2.3.0 lib/roadie/css_file_not_found.rb
roadie-2.3.0.pre1 lib/roadie/css_file_not_found.rb
roadie-2.2.0 lib/roadie/css_file_not_found.rb
roadie-2.1.0 lib/roadie/css_file_not_found.rb
roadie-2.1.0.pre2 lib/roadie/css_file_not_found.rb
roadie-2.1.0.pre1 lib/roadie/css_file_not_found.rb
roadie-2.0.0 lib/roadie/css_file_not_found.rb
roadie-1.1.3 lib/roadie/css_file_not_found.rb
roadie-1.1.1 lib/roadie/css_file_not_found.rb
roadie-1.1.2 lib/roadie/css_file_not_found.rb
roadie-1.1.0 lib/roadie/css_file_not_found.rb