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 Details

    • JythonScriptException

      public JythonScriptException(Object typeOfThing, String source, Exception cause)
    • JythonScriptException

      public JythonScriptException(Object typeOfThing, String source, nz.org.riskscape.problem.Problem cause)
  • 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

      public static String descriptionFromPySyntaxError(org.python.core.PySyntaxError cause)
    • getProblem

      public nz.org.riskscape.problem.Problem getProblem()
      Overrides:
      getProblem in class nz.org.riskscape.engine.RiskscapeException
    • getTypeOfThing

      public Object getTypeOfThing()
    • getSource

      public String getSource()
    • getCauseProblem

      public nz.org.riskscape.problem.Problem getCauseProblem()