ServiceError

org.llm4s.error.ServiceError
See theServiceError companion object
final case class ServiceError extends LLMError

Service-level errors from LLM providers

Attributes

Companion
object
Graph
Supertypes
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def isRecoverableStatus: Boolean
Implicitly added by ServiceErrorOps

Inherited methods

def correlationId: Option[String]

Error correlation IDs for debugging

Error correlation IDs for debugging

Attributes

Inherited from:
LLMError
def formatted: String

Formatted error message with context

Formatted error message with context

Attributes

Inherited from:
LLMError
final override def isRecoverable: Boolean

DEPRECATED: Use type-level markers instead

DEPRECATED: Use type-level markers instead

Attributes

Definition Classes
RecoverableError -> LLMError
Inherited from:
RecoverableError (hidden)
def maxRetries: Int

Maximum number of retry attempts recommended.

Maximum number of retry attempts recommended.

Attributes

Inherited from:
RecoverableError (hidden)
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val code: Option[String]

Optional error code for programmatic handling

Optional error code for programmatic handling

Attributes

override val context: Map[String, String]

Additional context information

Additional context information

Attributes

override val retryDelay: Option[Long]

Suggested delay in milliseconds before retrying.

Suggested delay in milliseconds before retrying.

Attributes