Closed Alex009 closed 2 years ago
inline fun <reified E : Throwable, reified T : Any> E.mapThrowable(): T { return ExceptionMappersStorage.throwableMapper<E, T>(T::class)(this) }
usage:
val myException = IllegalArgumentException("fail!") val message: StringDesc = myException.mapThrowable()
usage: