diff --git a/common/src/main/kotlin/ru/touchin/common/exceptions/CommonException.kt b/common/src/main/kotlin/ru/touchin/common/exceptions/CommonException.kt index 86935a3..a2177b5 100644 --- a/common/src/main/kotlin/ru/touchin/common/exceptions/CommonException.kt +++ b/common/src/main/kotlin/ru/touchin/common/exceptions/CommonException.kt @@ -1,3 +1,6 @@ package ru.touchin.common.exceptions -open class CommonException(description: String?) : RuntimeException(description.orEmpty()) +open class CommonException( + description: String?, + exception: Throwable? = null +) : RuntimeException(description.orEmpty(), exception)