Sha256: 724074661fe7d667c3835a9bbfaadcb47dd7f140e48a0eb1a585e75d47684a77

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 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
  class FileOutsidePaths        < Error; end

  module EngineError
    attr_accessor :sprockets_annotation

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sprockets-2.0.5 lib/sprockets/errors.rb
sprockets-2.0.4 lib/sprockets/errors.rb
sprockets-2.0.3 lib/sprockets/errors.rb
sprockets-2.0.2 lib/sprockets/errors.rb
sprockets-2.0.1 lib/sprockets/errors.rb