io.wavebeans.execution.distributed.CallingException.kt Maven / Gradle / Ivy
package io.wavebeans.execution.distributed
import kotlin.reflect.KClass
class CallingException(
val inherentExceptionClazz: KClass,
val inherentMessage: String,
val inherentStackTrace: List,
override val cause: CallingException?
) : Exception(
"Inherent exception ${inherentExceptionClazz}: ${inherentMessage}\n" +
"Stack trace:\n" +
inherentStackTrace.joinToString("\n", postfix = "\n----end of stackTrace----") { "\t at $it" },
cause
)