Package nz.org.riskscape.jython
Class JythonScriptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nz.org.riskscape.engine.RiskscapeException
nz.org.riskscape.jython.JythonScriptException
- All Implemented Interfaces:
Serializable
public class JythonScriptException
extends nz.org.riskscape.engine.RiskscapeException
- See Also:
-
Constructor Summary
ConstructorDescriptionJythonScriptException
(Object typeOfThing, String source, Exception cause) JythonScriptException
(Object typeOfThing, String source, nz.org.riskscape.problem.Problem cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
descriptionFromPySyntaxError
(org.python.core.PySyntaxError cause) nz.org.riskscape.problem.Problem
nz.org.riskscape.problem.Problem
static nz.org.riskscape.problem.Problem
toProblem
(org.python.core.PyException cause) Converts a Python Exception to a RiskScapeProblem
that contains the file/line info where the exception occurred (if a traceback is present).Methods inherited from class nz.org.riskscape.engine.RiskscapeException
getCause, hasProblem
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JythonScriptException
-
JythonScriptException
-
-
Method Details
-
toProblem
public static nz.org.riskscape.problem.Problem toProblem(org.python.core.PyException cause) Converts a Python Exception to a RiskScape
Problem
that contains the file/line info where the exception occurred (if a traceback is present). -
descriptionFromPySyntaxError
-
getProblem
public nz.org.riskscape.problem.Problem getProblem()- Overrides:
getProblem
in classnz.org.riskscape.engine.RiskscapeException
-
getTypeOfThing
-
getSource
-
getCauseProblem
public nz.org.riskscape.problem.Problem getCauseProblem()
-