forUncaughtException
Creates a SystemError wrapping an uncaught Kotlin exception (as opposed to a Prolog LogicError), e.g. one thrown by faulty primitive/library implementation code, setting it as SystemError.cause.
Creates a SystemError wrapping an uncaught Prolog exception term, i.e. one not recognized as any known LogicError type.