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
Source
ImageGeneration.scala
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

Attributes

Source
ImageGeneration.scala

Concrete methods

override def code: Option[String]

Optional error code for programmatic handling

Optional error code for programmatic handling

Attributes

Definition Classes
Source
ImageGeneration.scala

Inherited methods

Additional context information

Additional context information

Attributes

Inherited from:
LLMError
Source
LLMError.scala

Error correlation IDs for debugging

Error correlation IDs for debugging

Attributes

Inherited from:
LLMError
Source
LLMError.scala

Formatted error message with context

Formatted error message with context

Attributes

Inherited from:
LLMError
Source
LLMError.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Human-readable error message

Human-readable error message

Attributes

Inherited from:
ImageGenerationError
Source
ImageGeneration.scala

Attributes

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

Attributes

Inherited from:
Product