ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

Abort

public final class Abort

Raise a exception to abort the process when called.

If exit_without_error is true, the process will exit normally, otherwise it will exit with a SIGABORT signal.

Returns nothing but an exception.

Nested Classes

class Abort.Options Optional attributes for Abort  

Public Methods

static Abort
create(Scope scope, Options... options)
Factory method to create a class wrapping a new Abort operation.
static Abort.Options
errorMsg(String errorMsg)
static Abort.Options
exitWithoutError(Boolean exitWithoutError)

Inherited Methods

Public Methods

public static Abort create (Scope scope, Options... options)

Factory method to create a class wrapping a new Abort operation.

Parameters
scope current scope
options carries optional attributes values
Returns
  • a new instance of Abort

public static Abort.Options errorMsg (String errorMsg)

Parameters
errorMsg A string which is the message associated with the exception.

public static Abort.Options exitWithoutError (Boolean exitWithoutError)