# Interface Callbacks.OnModelErrorCallback

Enclosing class:
  `Callbacks`

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Callbacks.OnModelErrorCallback
Async callback interface for handling errors that occur during an LLM model call.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Maybe<LlmResponse>`
  `call(CallbackContext callbackContext, LlmRequest llmRequest, Exception error)`
  Async callback when model call fails.

- ## Method Details

  - ### call

    io.reactivex.rxjava3.core.Maybe<LlmResponse> call(CallbackContext callbackContext, LlmRequest llmRequest, Exception error)
    Async callback when model call fails.
    Parameters:
      `callbackContext` - Callback context.
      `llmRequest` - LLM request.
      `error` - The exception that occurred.
    Returns:
      response override, or empty to continue with error.