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

godot.core.bridge.ExceptionHandler.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("PackageDirectoryMismatch")

package godot.core

object JvmStackTrace {
    fun getExceptionStackTrace(throwable: Throwable): String {
        return throwable.stackTraceToString()
    }

    // TODO: Use this method to get the JVM stacktrace when Godot will add the features to script https://github.com/godotengine/godot/pull/91006
    fun getCurrentStacktrace() = Thread.currentThread().stackTrace.joinToString("\n")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy