From 0677782b2e496ff88bcbbfc6af5a6394ae50b2b6 Mon Sep 17 00:00:00 2001 From: Alexander Buntakov Date: Thu, 10 Jun 2021 18:34:39 +0300 Subject: [PATCH] change common exception --- .../kotlin/ru/touchin/common/exceptions/CommonException.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)