ImageServiceError

org.llm4s.imagegeneration.ImageServiceError
See theImageServiceError companion object

The provider's service failed or refused the call, with the HTTP status it answered (0 when it did not answer at all, as in a failed health check).

Whether trying again can help follows from the status, which a class cannot express by itself, so there are two cases behind this type and ImageServiceError.apply picks one: a transient status gives a org.llm4s.error.RecoverableError, any other a org.llm4s.error.NonRecoverableError. Build it with ImageServiceError(message, status) and match it with case ImageServiceError(message, status).

Attributes

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

Members list

Value members

Abstract methods

def statusCode: Int

Concrete methods

override def code: Option[String]

Optional error code for programmatic handling

Optional error code for programmatic handling

Attributes

Definition Classes

Inherited methods

def context: Map[String, String]

Additional context information

Additional context information

Attributes

Inherited from:
LLMError
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
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def message: String

Human-readable error message

Human-readable error message

Attributes

Inherited from:
ImageGenerationError
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product