Sha256: 62691540eaf2804a25932c71a560ff8c1301a99b249660bc9d4bfac9ddfb8537

Contents?: true

Size: 1.09 KB

Versions: 22

Compression:

Stored size: 1.09 KB

Contents

module FactoryBot
  # Raised when a factory is defined that attempts to instantiate itself.
  class AssociationDefinitionError < RuntimeError; end

  # Raised when a trait is defined that references itself.
  class TraitDefinitionError < RuntimeError; end

  # Raised when a callback is defined that has an invalid name
  class InvalidCallbackNameError < RuntimeError; end

  # Raised when a factory is defined with the same name as a previously-defined factory.
  class DuplicateDefinitionError < RuntimeError; end

  # Raised when attempting to register a sequence from a dynamic attribute block
  class SequenceAbuseError < RuntimeError; end

  # Raised when defining an attribute twice in the same factory
  class AttributeDefinitionError < RuntimeError; end

  # Raised when attempting to pass a block to an association definition
  class AssociationDefinitionError < RuntimeError; end

  # Raised when a method is defined in a factory or trait with arguments
  class MethodDefinitionError < RuntimeError; end

  # Raised when any factory is considered invalid
  class InvalidFactoryError < RuntimeError; end
end

Version data entries

22 entries across 21 versions & 3 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/factory_bot-6.5.0/lib/factory_bot/errors.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/factory_bot-6.5.0/lib/factory_bot/errors.rb
factory_bot-6.5.0 lib/factory_bot/errors.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/factory_bot-6.4.6/lib/factory_bot/errors.rb
factory_bot-6.4.6 lib/factory_bot/errors.rb
factory_bot-6.4.5 lib/factory_bot/errors.rb
factory_bot-6.4.4 lib/factory_bot/errors.rb
factory_bot-6.4.3 lib/factory_bot/errors.rb
factory_bot-6.4.2 lib/factory_bot/errors.rb
factory_bot-6.4.1 lib/factory_bot/errors.rb
factory_bot-6.4.0 lib/factory_bot/errors.rb
factory_bot-6.3.0 lib/factory_bot/errors.rb
factory_bot-6.2.1 lib/factory_bot/errors.rb
factory_bot-6.2.0 lib/factory_bot/errors.rb
factory_bot-6.1.0 lib/factory_bot/errors.rb
factory_bot-6.0.2 lib/factory_bot/errors.rb
factory_bot-6.0.1 lib/factory_bot/errors.rb
factory_bot-6.0.0 lib/factory_bot/errors.rb
factory_bot-5.2.0 lib/factory_bot/errors.rb
factory_bot-5.1.2 lib/factory_bot/errors.rb