RmiUtils now accepts `Throwable` instead of `Exception`

This commit is contained in:
Robinson 2023-09-05 23:38:13 +02:00
parent 7c326d180c
commit 3704ae25e7
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ object RmiUtils {
*
* We do this because these stack frames are not useful in resolving exception handling from a users perspective, and only clutter the stacktrace.
*/
fun cleanStackTraceForProxy(localException: Exception, remoteException: Exception? = null) {
fun cleanStackTraceForProxy(localException: Throwable, remoteException: Throwable? = null) {
val myClassName = RmiClient::class.java.name
val stackTrace = localException.stackTrace
var newStartIndex = 0
@ -553,7 +553,7 @@ object RmiUtils {
*
* Neither of these are useful in resolving exception handling from a users perspective, and only clutter the stacktrace.
*/
fun cleanStackTraceForImpl(exception: Exception, isSuspendFunction: Boolean) {
fun cleanStackTraceForImpl(exception: Throwable, isSuspendFunction: Boolean) {
val packageName = RmiUtils::class.java.packageName
val stackTrace = exception.stackTrace