classUndefinedBehaviorError extends java.lang.Error with ControlThrowable
Error thrown when an undefined behavior in Fatal mode has been detected.
This error should never be caught. It indicates a severe programming bug.
In Unchecked mode, the program may behave arbitrarily.
The cause is set to the exception that would have been thrown if the
given behavior was in Compliant mode.
If your program relies on the proper kind of exception being thrown, as if
running on the JVM, you should set the appropriate behavior to Compliant.
Note that this will have (potentially major) performance impacts.
Linear Supertypes
ControlThrowable, NoStackTrace, java.lang.Error, java.lang.Throwable, java.io.Serializable, AnyRef, Any
Error thrown when an undefined behavior in Fatal mode has been detected. This error should never be caught. It indicates a severe programming bug. In Unchecked mode, the program may behave arbitrarily. The
cause
is set to the exception that would have been thrown if the given behavior was in Compliant mode. If your program relies on the proper kind of exception being thrown, as if running on the JVM, you should set the appropriate behavior to Compliant. Note that this will have (potentially major) performance impacts.