Sha256: d5a497261328f406742c4630a758fcbb93167fce0a195ad61632ab4a0f407cfb

Contents?: true

Size: 484 Bytes

Versions: 7

Compression:

Stored size: 484 Bytes

Contents

module JsonSpec
  class Error < StandardError
  end

  class MissingPath < Error
    attr_reader :path

    def initialize(path)
      @path = path
    end

    def to_s
      %(Missing JSON path "#{path}")
    end
  end

  class MissingDirectory < Error
    def to_s
      "No JsonSpec.directory set"
    end
  end

  class MissingFile < Error
    attr_reader :path

    def initialize(path)
      @path = path
    end

    def to_s
      "No JSON file at #{path}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
json_spec-1.1.3 lib/json_spec/errors.rb
json_spec-1.1.2 lib/json_spec/errors.rb
json_spec-1.1.1 lib/json_spec/errors.rb
json_spec-1.1.0 lib/json_spec/errors.rb
json_spec-1.0.3 lib/json_spec/errors.rb
json_spec-1.0.2 lib/json_spec/errors.rb
json_spec-1.0.0 lib/json_spec/errors.rb