se.sics.jasper
Class SPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by se.sics.jasper.SPException
All Implemented Interfaces:
java.io.Serializable, PrologException
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

Field Summary
protected  java.lang.String toStringString
           
 
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, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

toStringString

protected java.lang.String toStringString
Method Detail

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
Throws:
SPException

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object