Skip to main content

ScriptResult

Script execution results if an error occurred or was successful.


isError


isError() : boolean

Return

( boolean )


isSuccess


isSuccess() : boolean

Return

( boolean )


whenError


whenError(func: java.util.function.Consumer) : ScriptResult

Attributes
NAMETYPEDESCRIPTION
funcjava.util.function.Consumer
Return

( ScriptResult )


whenError(function: org.graalvm.polyglot.Value) : ScriptResult

Attributes
NAMETYPEDESCRIPTION
functionorg.graalvm.polyglot.Value
Return

( ScriptResult )


whenSucceed


whenSucceed(func: java.lang.Runnable) : ScriptResult

Attributes
NAMETYPEDESCRIPTION
funcjava.lang.Runnable
Return

( ScriptResult )


whenSucceed(function: org.graalvm.polyglot.Value) : ScriptResult

Attributes
NAMETYPEDESCRIPTION
functionorg.graalvm.polyglot.Value
Return

( ScriptResult )