Sha256: db79dcf5d29991c1a130326d94745c53aa691a627e8c1816e50340674fe1c301

Contents?: true

Size: 343 Bytes

Versions: 7

Compression:

Stored size: 343 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 message
      @errors
    end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rest_model-0.2.1 lib/rest_model/errors.rb
rest_model-0.2.0 lib/rest_model/errors.rb
rest_model-0.1.24 lib/rest_model/errors.rb
rest_model-0.1.23 lib/rest_model/errors.rb
rest_model-0.1.22 lib/rest_model/errors.rb
rest_model-0.1.21 lib/rest_model/errors.rb
rest_model-0.1.20 lib/rest_model/errors.rb