Package org.apache.bsf
Class BSFException
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.
- Author:
- Sanjiva Weerawarana
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionBSFException
(int reason, String msg) BSFException
(int reason, String msg, Throwable t) BSFException
(String msg) -
Method Summary
Modifier and TypeMethodDescriptionint
void
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
REASON_INVALID_ARGUMENT
public static final int REASON_INVALID_ARGUMENT- See Also:
-
REASON_IO_ERROR
public static final int REASON_IO_ERROR- See Also:
-
REASON_UNKNOWN_LANGUAGE
public static final int REASON_UNKNOWN_LANGUAGE- See Also:
-
REASON_EXECUTION_ERROR
public static final int REASON_EXECUTION_ERROR- See Also:
-
REASON_UNSUPPORTED_FEATURE
public static final int REASON_UNSUPPORTED_FEATURE- See Also:
-
REASON_OTHER_ERROR
public static final int REASON_OTHER_ERROR- See Also:
-
-
Constructor Details
-
BSFException
-
BSFException
-
BSFException
-
-
Method Details
-
getReason
public int getReason() -
getTargetException
-
printStackTrace
public void printStackTrace()- Overrides:
printStackTrace
in classThrowable
-