Sha256: 55612e9d456a379c964daf51248d78c43bceaad9790c1fd3f004cc8128a536fa

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

#
#       ActiveFacts Runtime API
#       Custom exception classes
#
# Copyright (c) 2009 Clifford Heath. Read the LICENSE file.

module ActiveFacts
  module API
    class DuplicateIdentifyingValueException < StandardError
      def initialize(desc)
        super("Illegal attempt to assert #{desc[:class].basename} having identifying value" +
              " (#{desc[:role].name} is #{desc[:value].verbalise})," +
              " when #{desc[:value].related_entities.map(&:verbalise).join(", ")} already exists")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activefacts-api-0.9.2 lib/activefacts/api/exceptions.rb
activefacts-api-0.9.1 lib/activefacts/api/exceptions.rb