Sha256: 065960f4cbf7a36528c488f3bef019ded987ca449926fd95a665e001dd25faef

Contents?: true

Size: 654 Bytes

Versions: 11

Compression:

Stored size: 654 Bytes

Contents

# frozen_string_literal: true

module MediaTypes
  class Scheme

    # Base class for all validations errors
    class ValidationError < ArgumentError; end

    # Raised when it did not expect more data, but there was more left
    class StrictValidationError < ValidationError; end

    # Raised when it expected not to be empty, but it was
    class EmptyOutputError < ValidationError; end

    # Raised when a value did not have the expected type
    class OutputTypeMismatch < ValidationError; end

    # Raised when it expected more data but there wasn't any left
    class ExhaustedOutputError < ValidationError; end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
media_types-2.0.0 lib/media_types/scheme/errors.rb
media_types-1.0.0 lib/media_types/scheme/errors.rb
media_types-0.6.2 lib/media_types/scheme/errors.rb
media_types-0.6.1 lib/media_types/scheme/errors.rb
media_types-0.6.0 lib/media_types/scheme/errors.rb
media_types-0.5.5 lib/media_types/scheme/errors.rb
media_types-0.5.4 lib/media_types/scheme/errors.rb
media_types-0.5.3 lib/media_types/scheme/errors.rb
media_types-0.5.2 lib/media_types/scheme/errors.rb
media_types-0.5.1 lib/media_types/scheme/errors.rb
media_types-0.5.0 lib/media_types/scheme/errors.rb