Using Exception is OK here.
This commit is contained in:
parent
1673fe7354
commit
3e166e3d89
1 changed files with 1 additions and 1 deletions
|
|
@ -31,6 +31,6 @@ interface MediaPreProcessor {
|
||||||
compressIfPossible: Boolean
|
compressIfPossible: Boolean
|
||||||
): Result<MediaUploadInfo>
|
): Result<MediaUploadInfo>
|
||||||
|
|
||||||
data class Failure(override val cause: Throwable?) : RuntimeException(cause)
|
data class Failure(override val cause: Throwable?) : Exception(cause)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue