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
ConstructorsConstructorDescriptionJythonScriptException(Object typeOfThing, URI source, Exception cause) JythonScriptException(Object typeOfThing, URI source, nz.org.riskscape.problem.Problem cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdescriptionFromPySyntaxError(org.python.core.PySyntaxError cause) nz.org.riskscape.problem.Problemnz.org.riskscape.problem.Problemstatic nz.org.riskscape.problem.ProblemtoProblem(org.python.core.PyException cause) Converts a Python Exception to a RiskScapeProblemthat contains the file/line info where the exception occurred (if a traceback is present).Methods inherited from class nz.org.riskscape.engine.RiskscapeException
getCause, getProblems, hasProblemMethods 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
Problemthat contains the file/line info where the exception occurred (if a traceback is present). -
descriptionFromPySyntaxError
-
getProblem
public nz.org.riskscape.problem.Problem getProblem()- Overrides:
getProblemin classnz.org.riskscape.engine.RiskscapeException
-
getTypeOfThing
-
getSource
-
getCauseProblem
public nz.org.riskscape.problem.Problem getCauseProblem()
-