Sha256: 5d8f76ba858daaabb866593b35039e875eb258d1b8033698322921eca09198d1

Contents?: true

Size: 231 Bytes

Versions: 10

Compression:

Stored size: 231 Bytes

Contents

module Mutations
  class ValidationException < ::StandardError
    attr_accessor :errors

    def initialize(errors)
      self.errors = errors
    end

    def to_s
      "#{self.errors.message_list.join('; ')}"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mutations-0.9.1 lib/mutations/exception.rb
mutations-0.9.0 lib/mutations/exception.rb
mutations-0.8.3 lib/mutations/exception.rb
mutations-0.8.2 lib/mutations/exception.rb
mutations-0.8.1 lib/mutations/exception.rb
mutations-0.8.0 lib/mutations/exception.rb
mutations-0.7.2 lib/mutations/exception.rb
mutations-0.7.1 lib/mutations/exception.rb
mutations-0.7.0 lib/mutations/exception.rb
mutations-0.6.0 lib/mutations/exception.rb