se.sics.jasper
Class SPException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--se.sics.jasper.SPException
- All Implemented Interfaces:
- PrologException, java.io.Serializable
- Direct Known Subclasses:
- AtomRegisterFailure, ConversionFailedException, IllegalCallerException, IllegalTermException
- public class SPException
- extends java.lang.Exception
- implements PrologException
Represents a exception thrown by Jasper. You should not create or
inherit from SPException
or its sub-classes.
- See Also:
- Serialized Form
Method Summary |
protected void |
finalize()
|
Term |
getTerm()
Returns the exception term. |
java.lang.String |
toString()
Returns a description of the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
toStringString
protected java.lang.String toStringString
toString
public java.lang.String toString()
- Returns a description of the exception. If an error-description
was given, it is returned together with the error-string returned
from Prolog, if any.
- Specified by:
toString
in interface PrologException
- Overrides:
toString
in class java.lang.Throwable
getTerm
public Term getTerm()
throws SPException
- Returns the exception term. Returns null if there is no exception term.
- Specified by:
getTerm
in interface PrologException
finalize
protected void finalize()
- Overrides:
finalize
in class java.lang.Object