class FactoryBot::Linter::FactoryError

def initialize(wrapped_error, factory)

def initialize(wrapped_error, factory)
  @wrapped_error = wrapped_error
  @factory = factory
end

def location

def location
  @factory.name
end

def message

def message
  message = @wrapped_error.message
  "* #{location} - #{message} (#{@wrapped_error.class.name})"
end

def verbose_message

def verbose_message
  <<~MESSAGE
    #{message}
      #{@wrapped_error.backtrace.join("\n  ")}
  MESSAGE
end