Class BSFException

  • All Implemented Interfaces:
    java.io.Serializable

    public class BSFException
    extends java.lang.Exception
    If something goes wrong while doing some scripting stuff, one of these is thrown. The integer code indicates what's wrong and the message may give more details. The reason one exception with multiple meanings (via the code) [instead of multiple exception types] is used is due to the interest to keep the run-time size small.
    Author:
    Sanjiva Weerawarana
    See Also:
    Serialized Form
    • Constructor Detail

      • BSFException

        public BSFException​(int reason,
                            java.lang.String msg)
      • BSFException

        public BSFException​(int reason,
                            java.lang.String msg,
                            java.lang.Throwable t)
      • BSFException

        public BSFException​(java.lang.String msg)
    • Method Detail

      • getReason

        public int getReason()
      • getTargetException

        public java.lang.Throwable getTargetException()
      • printStackTrace

        public void printStackTrace()
        Overrides:
        printStackTrace in class java.lang.Throwable