Interface SnippetOutcome.ControlViolation

All Superinterfaces:
SnippetOutcome, SnippetOutcome.HaltsScript, SnippetOutcome.HasException<ControlViolationException>
Enclosing interface:
SnippetOutcome

public static sealed interface SnippetOutcome.ControlViolation extends SnippetOutcome, SnippetOutcome.HaltsScript, SnippetOutcome.HasException<ControlViolationException>
Indicates that the bytecode generated by the snippet could not be loaded because it violated some Control.

If this error happens, the snippet was never executed. Controls can also trigger exceptions during snippet execution; that results in an SnippetOutcome.ExceptionThrown instead.