System

object System

A replacement for java.lang.System that prevents scripts from terminating the JVM.

When imported into a Kotlin script context, calls to System.exit() will throw a ScriptException instead of actually exiting.

Functions

Link copied to clipboard
fun exit(status: Int)

Throws a ScriptException to prevent scripts from calling System.exit().