Class ResponseCorrectionRetryException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.redouble.nucleo.harness.errors.retry.ResponseCorrectionRetryException
All Implemented Interfaces:
Serializable

public class ResponseCorrectionRetryException extends RuntimeException
Signals that an LLM response failed to parse or validate, a correction message has already been appended to the conversation, and the job should be re-run so the model can fix its output. The framework catches this in JobDispatcher.executeWithRetry and restarts the job transparently; the caller (normally LLMCall) tracks its own correction budget and stops throwing once that budget is exhausted, so the dispatcher's cap is only a backstop against runaway jobs.

This is NOT an LLMReadableException: like OutputTruncationRetryException, it is a deterministic framework retry, invisible to the LLM above and to the end user. The underlying correctable failure travels as the cause.

Since:
0.1 (2026-06-09)
Author:
Andrey Santrosyan
See Also:
  • Constructor Details

    • ResponseCorrectionRetryException

      public ResponseCorrectionRetryException(String modelName, int correctionAttempt, Throwable cause)
  • Method Details

    • getModelName

      public String getModelName()
    • getCorrectionAttempt

      public int getCorrectionAttempt()