Class ScriptAbuseException

    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptAbuseException​(java.lang.String message, boolean scriptKilled, java.lang.Throwable throwable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      boolean isScriptKilled()
      Check if script when asked exited nicely, or not.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • scriptKilled

        private final boolean scriptKilled
    • Constructor Detail

      • ScriptAbuseException

        public ScriptAbuseException​(java.lang.String message,
                                    boolean scriptKilled,
                                    java.lang.Throwable throwable)
    • Method Detail

      • isScriptKilled

        public boolean isScriptKilled()
        Check if script when asked exited nicely, or not.

        Note, killint java thread is very dangerous to VM health.

        Returns:
        true when evaluator thread was finished by Thread.stop() method, false when only Thread.interrupt() was used
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable