Failed

org.llm4s.repl.Outcome.Failed
final case class Failed[+A](error: LLMError)

The error that stopped the helper; it has already been printed.

Attributes

Members list

Value members

Inherited methods

def failure: Option[LLMError]

The error, if the helper failed.

The error, if the helper failed.

Attributes

Inherited from:
Outcome
def getOrElse[B >: A](default: => B): B

The value, or default when the helper failed.

The value, or default when the helper failed.

Attributes

Inherited from:
Outcome
def isFailure: Boolean

Whether the helper failed.

Whether the helper failed.

Attributes

Inherited from:
Outcome
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def toOption: Option[A]

The value, if the helper succeeded.

The value, if the helper succeeded.

Attributes

Inherited from:
Outcome
def toResult: Result[A]

Right(value) or Left(error).

Right(value) or Left(error).

Attributes

Inherited from:
Outcome
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Outcome -> Any
Inherited from:
Outcome