Sha256: 8f76e6c56a2f0c50822bb6479d89277c32968abec6dccaf90ffca45436fef75e

Contents?: true

Size: 622 Bytes

Versions: 7

Compression:

Stored size: 622 Bytes

Contents

module Gorillib
  module Model

    # All exceptions defined by Gorillib::Model include this module.
    module Error
    end

    # Exception raised if attempting to assign unknown fields
    class UnknownFieldError < ::NoMethodError
      include Gorillib::Model::Error
    end

    class ConflictingPositionError < ::ArgumentError
      include Gorillib::Model::Error
    end

    # Exception raised if deserialized attributes don't have the right shape:
    # for example, a CSV line with too many/too few fields
    class RawDataMismatchError < ::StandardError
      include Gorillib::Model::Error
    end

  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gorillib-model-0.0.3 lib/gorillib/model/errors.rb
gorillib-model-0.0.1 lib/gorillib/model/errors.rb
gorillib-0.6.0 lib/gorillib/model/errors.rb
gorillib-0.5.2 lib/gorillib/model/errors.rb
gorillib-0.5.0 lib/gorillib/model/errors.rb
gorillib-0.4.2 lib/gorillib/model/errors.rb
gorillib-0.4.2pre lib/gorillib/model/errors.rb