Class ScriptAbuseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- delight.nashornsandbox.exceptions.ScriptAbuseException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ScriptCPUAbuseException
,ScriptMemoryAbuseException
public class ScriptAbuseException extends java.lang.RuntimeException
Exception is thrown when JS script abuse was detected.Created on 2017.11.24
- Version:
- $Id$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
scriptKilled
private static long
serialVersionUID
-
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.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
scriptKilled
private final boolean scriptKilled
-
-
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 byThread.stop()
method,false
when onlyThread.interrupt()
was used
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-