Sha256: d53babd5e9b0f03b2066307add76ad12486a9821b83d2912f041db0663bbc450

Contents?: true

Size: 403 Bytes

Versions: 95

Compression:

Stored size: 403 Bytes

Contents

module Bibliothecary
  class RemoteParsingError < StandardError
    attr_accessor :code
    def initialize(msg, code)
      @code = code
      super(msg)
    end
  end

  class FileParsingError < StandardError
    attr_accessor :filename
    def initialize(msg, filename)
      @filename = filename
      msg = "#{filename}: #{msg}" unless msg.include?(filename)
      super("#{msg}")
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
bibliothecary-8.7.2 lib/bibliothecary/exceptions.rb
bibliothecary-8.7.1 lib/bibliothecary/exceptions.rb
bibliothecary-8.7.0 lib/bibliothecary/exceptions.rb
bibliothecary-8.6.5 lib/bibliothecary/exceptions.rb
bibliothecary-8.6.4 lib/bibliothecary/exceptions.rb
bibliothecary-8.6.3 lib/bibliothecary/exceptions.rb
bibliothecary-8.6.2 lib/bibliothecary/exceptions.rb
bibliothecary-8.6.1 lib/bibliothecary/exceptions.rb
bibliothecary-8.6.0 lib/bibliothecary/exceptions.rb
bibliothecary-8.5.1 lib/bibliothecary/exceptions.rb
bibliothecary-8.5.0 lib/bibliothecary/exceptions.rb
bibliothecary-8.4.6 lib/bibliothecary/exceptions.rb
bibliothecary-8.4.5 lib/bibliothecary/exceptions.rb
bibliothecary-8.4.4 lib/bibliothecary/exceptions.rb
bibliothecary-8.4.3 lib/bibliothecary/exceptions.rb
bibliothecary-8.4.2 lib/bibliothecary/exceptions.rb
bibliothecary-8.4.1 lib/bibliothecary/exceptions.rb
bibliothecary-8.4.0 lib/bibliothecary/exceptions.rb
bibliothecary-8.3.9 lib/bibliothecary/exceptions.rb
bibliothecary-8.3.8 lib/bibliothecary/exceptions.rb