Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ProcessingError.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
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
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
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"
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
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
Unapply extractor for pattern matching
Unapply extractor for pattern matching