Abort

open class Abort

To end a script, call [abort]. This will throw an [Aborted] exception. It is up to the scripts caller to catch this exception, and handle it appropriately. I recommend you use the same convention as Java's system.exit i.e. A non-zero exit status implies an error.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun abort()
open fun abort(status: Int)