class Tryouts::TestBatch

def handle_batch_error(exception)

def handle_batch_error(exception)
  @status       = :error
  @failed_count = 1
  error_message = "Batch execution failed: #{exception.message}"
  backtrace     = exception.respond_to?(:backtrace) ? exception.backtrace : nil
  @output_manager&.error(error_message, backtrace)
end