Sha256: 594686ce461670702fe5d037eb8ffd14744748431e99707bfe86b656e7e9f109

Contents?: true

Size: 483 Bytes

Versions: 8

Compression:

Stored size: 483 Bytes

Contents

# Define some basic Sprockets error classes
module Sprockets
  class Error           < StandardError; end
  class ArgumentError           < Error; end
  class CircularDependencyError < Error; end
  class ContentTypeMismatch     < Error; end
  class EncodingError           < Error; end
  class FileNotFound            < Error; end

  module EngineError
    attr_accessor :sprockets_annotation

    def message
      [super, sprockets_annotation].compact.join("\n")
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
sprockets-2.0.0 lib/sprockets/errors.rb
bpm-1.0.0.beta.8 vendor/sprockets/lib/sprockets/errors.rb
bpm-1.0.0.beta.6 vendor/sprockets/lib/sprockets/errors.rb
bpm-1.0.0.beta.5 vendor/sprockets/lib/sprockets/errors.rb
bpm-1.0.0.beta.4 vendor/sprockets/lib/sprockets/errors.rb
bpm-0.1.4 vendor/sprockets/lib/sprockets/errors.rb
bpm-0.1.3 vendor/sprockets/lib/sprockets/errors.rb
bpm-0.1.2 vendor/sprockets/lib/sprockets/errors.rb