All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.dev.kord.rest.request.RecoveredStackTrace.kt Maven / Gradle / Ivy

package dev.kord.rest.request

internal actual fun RecoveredStackTrace.sanitizeStackTrace() {
    // Remove artifacts of stack trace capturing.
    // The first stack trace element is the creation of the RecoveredStackTrace:
    // at dev.kord.rest.request.StackTraceRecoveringKtorRequestHandler.handle(StackTraceRecoveringKtorRequestHandler.kt:19)
    (this as Throwable).stackTrace = stackTrace.copyOfRange(1, stackTrace.size)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy