Sha256: 3c73d978ff5abff3c0bc095157a9bc260f0eb7d35cdcbf3fa2a076d0f5f63d0e

Contents?: true

Size: 304 Bytes

Versions: 13

Compression:

Stored size: 304 Bytes

Contents

class RestModel
  class SerializationError < StandardError; end
  class TranslationError   < StandardError; end

  class SourceError < StandardError
    attr_reader :errors

    def initialize(errors)
      @errors = errors
    end

    def self.exception(errors = {})
      new(errors)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rest_model-0.1.19 lib/rest_model/errors.rb
rest_model-0.1.18 lib/rest_model/errors.rb
rest_model-0.1.17 lib/rest_model/errors.rb
rest_model-0.1.16 lib/rest_model/errors.rb
rest_model-0.1.15 lib/rest_model/errors.rb
rest_model-0.1.14 lib/rest_model/errors.rb
rest_model-0.1.13 lib/rest_model/errors.rb
rest_model-0.1.12 lib/rest_model/errors.rb
rest_model-0.1.11 lib/rest_model/errors.rb
rest_model-0.1.10 lib/rest_model/errors.rb
rest_model-0.1.9 lib/rest_model/errors.rb
rest_model-0.1.8 lib/rest_model/errors.rb
rest_model-0.1.7 lib/rest_model/errors.rb