change common exception

This commit is contained in:
Alexander Buntakov 2021-06-10 18:34:39 +03:00
parent 1e5cc224eb
commit 0677782b2e
1 changed files with 4 additions and 1 deletions

View File

@ -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)