[Util] Allow to use Throwable as cause of ExceptionWithAttachment

This commit is contained in:
Dmitriy Novozhilov
2024-02-27 10:14:21 +02:00
committed by Space Team
parent 5c632bc78e
commit 88206ca151
@@ -60,7 +60,7 @@ inline fun KotlinExceptionWithAttachments.buildAttachment(
inline fun Logger.logErrorWithAttachment(
message: String,
cause: Exception? = null,
cause: Throwable? = null,
attachmentName: String = "info.txt",
buildAttachment: ExceptionAttachmentBuilder.() -> Unit = {},
) {
@@ -69,7 +69,7 @@ inline fun Logger.logErrorWithAttachment(
inline fun buildErrorWithAttachment(
message: String,
cause: Exception? = null,
cause: Throwable? = null,
attachmentName: String = "info.txt",
buildAttachment: ExceptionAttachmentBuilder.() -> Unit = {},
): Throwable {
@@ -80,7 +80,7 @@ inline fun buildErrorWithAttachment(
inline fun errorWithAttachment(
message: String,
cause: Exception? = null,
cause: Throwable? = null,
attachmentName: String = "info.txt",
buildAttachment: ExceptionAttachmentBuilder.() -> Unit = {},
): Nothing {