ProcessingError

org.llm4s.error.ProcessingError
See theProcessingError companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(operation: String, message: String, cause: Option[Throwable]): ProcessingError

Creates a processing error for a failed operation.

Creates a processing error for a failed operation.

The message is Processing failed during <operation>: <message>. context holds operation and, when a cause is given, cause set to that exception's getMessage, or to its class name (for example java.lang.RuntimeException) when the exception has no message or an empty one, so the context never holds null.

Value parameters

cause

the underlying exception, if any

message

what went wrong, appended after the operation name in the error message

operation

the processing operation that failed (e.g. "audio-resample")

Attributes

Returns

the processing error

def audioConversion(message: String, cause: Option[Throwable]): ProcessingError

Creates a processing error for a failed audio conversion: operation is "audio-conversion".

Creates a processing error for a failed audio conversion: operation is "audio-conversion".

Value parameters

cause

the underlying exception, if any

message

what went wrong, appended after the operation name in the error message

Attributes

Returns

the processing error

def audioResample(message: String, cause: Option[Throwable]): ProcessingError

Creates a processing error for a failed audio resampling: operation is "audio-resample".

Creates a processing error for a failed audio resampling: operation is "audio-resample".

Value parameters

cause

the underlying exception, if any

message

what went wrong, appended after the operation name in the error message

Attributes

Returns

the processing error

Example
val error = ProcessingError.audioResample("bad rate")
error.operation // "audio-resample"
error.message   // "Processing failed during audio-resample: bad rate"
def audioTrimming(message: String, cause: Option[Throwable]): ProcessingError

Creates a processing error for a failed audio trimming: operation is "audio-trimming".

Creates a processing error for a failed audio trimming: operation is "audio-trimming".

Value parameters

cause

the underlying exception, if any

message

what went wrong, appended after the operation name in the error message

Attributes

Returns

the processing error

def audioValidation(message: String, cause: Option[Throwable]): ProcessingError

Creates a processing error for a failed audio validation: operation is "audio-validation".

Creates a processing error for a failed audio validation: operation is "audio-validation".

Value parameters

cause

the underlying exception, if any

message

what went wrong, appended after the operation name in the error message

Attributes

Returns

the processing error

def unapply(error: ProcessingError): Option[(String, String, Option[Throwable])]

Unapply extractor for pattern matching

Unapply extractor for pattern matching

Attributes