Save This Page
Home » bsf-src-2.4.0 » org.apache.bsf » [javadoc | source]
org.apache.bsf
public class: BSFException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         org.apache.bsf.BSFException

All Implemented Interfaces:
    Serializable

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.
Field Summary
public static final  int REASON_INVALID_ARGUMENT     
public static final  int REASON_IO_ERROR     
public static final  int REASON_UNKNOWN_LANGUAGE     
public static final  int REASON_EXECUTION_ERROR     
public static final  int REASON_UNSUPPORTED_FEATURE     
public static final  int REASON_OTHER_ERROR     
 int reason     
 Throwable targetThrowable     
Constructor:
 public BSFException(String msg) 
 public BSFException(int reason,
    String msg) 
 public BSFException(int reason,
    String msg,
    Throwable t) 
Method from org.apache.bsf.BSFException Summary:
getReason,   getTargetException,   printStackTrace
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.bsf.BSFException Detail:
 public int getReason() 
 public Throwable getTargetException() 
 public  void printStackTrace()