se.sics.jasper
Class SPException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--se.sics.jasper.SPException
Direct Known Subclasses:
AtomRegisterFailure, ConversionFailedException, IllegalCallerException

public class SPException
extends java.lang.Exception

Represents a exception thrown by Jasper.

See Also:
Serialized Form

Field Summary
protected  SPTerm term
           
 
Constructor Summary
SPException()
          Creates an undescribed exception.
SPException(SPTerm term)
          Creates an exception containing a Prolog term.
SPException(java.lang.String spec)
          Creates an exception with the given specification.
 
Method Summary
 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

term

protected SPTerm term
Constructor Detail

SPException

public SPException(java.lang.String spec)
Creates an exception with the given specification.
Parameters:
spec - Description of the error.

SPException

public SPException(SPTerm term)
Creates an exception containing a Prolog term. Prolog exceptions thrown by se.sics.jasper.SICStus#query will be of this type.

SPException

public SPException()
Creates an undescribed exception.
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.
Overrides:
toString in class java.lang.Throwable