NetworkError

org.llm4s.error.NetworkError
See theNetworkError companion object
@Stable
final case class NetworkError extends LLMError, RecoverableError

Raised when a network-level failure occurs during communication with the LLM provider.

This is a RecoverableError: it indicates transient failures such as connection drops, DNS resolution failures, or temporary unreachability. Retrying the operation may succeed.

Value parameters

cause

optional underlying exception that caused the failure (e.g., java.net.ConnectException)

endpoint

the URL or endpoint that was being accessed

message

human-readable description of the network failure

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

Inherited methods

def code: Option[String]

Optional error code for programmatic handling

Optional error code for programmatic handling

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 maxRetries: Int

Maximum number of retry attempts recommended.

Maximum number of retry attempts recommended.

Attributes

Inherited from:
RecoverableError
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def retryDelay: Option[FiniteDuration]

Suggested delay before retrying.

Suggested delay before retrying.

Attributes

Inherited from:
RecoverableError

Concrete fields

override val context: Map[String, String]

Additional context information

Additional context information

Attributes