This is roughly the equivalent of the traceback function of R.
Examples
if (FALSE) {
callStatic(
getRSharpSetting("testCasesTypeName"), "
ThrowException",
10L
) # will be truncated by the Rf_error API
printTraceback() # prints the full stack trace
}