Sha256: 0406deec452e8d49ce5d9e9034c57870a48d08aa8d37479d3036e8b1b4a96196

Contents?: true

Size: 1009 Bytes

Versions: 5

Compression:

Stored size: 1009 Bytes

Contents

module FactoryBot
  # Raised when a factory is defined that attempts to instantiate itself.
  class AssociationDefinitionError < 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

5 entries across 5 versions & 1 rubygems

Version Path
factory_bot-5.0.2 lib/factory_bot/errors.rb
factory_bot-5.0.1 lib/factory_bot/errors.rb
factory_bot-5.0.0 lib/factory_bot/errors.rb
factory_bot-5.0.0.rc2 lib/factory_bot/errors.rb
factory_bot-5.0.0.rc1 lib/factory_bot/errors.rb