Sha256: 73dfffb01a540b5b210a22ed2b13b7b0b1f87e3453e5f9b48019efa3d6046021

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 Bytes

Contents

module Flexparser
  class Error < StandardError; end

  #
  # An Error that will be thrown if a value is required but
  # missing.
  #
  class RequiredMissingError < Error
    attr_reader :parser

    def initialize(parser)
      @parser = parser
    end
  end

  #
  # An Error that is thrown when there is no clear name
  #   for a property.
  #
  class AmbiguousNamingError < ArgumentError; end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flexparser-1.0.3 lib/flexparser/errors.rb
flexparser-1.0.2 lib/flexparser/errors.rb