|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
CiaoJava.PLException
This class implements the exceptions that can be thrown using the CiaoJava package, and translates the exceptions received from the Prolog side.
Constructor Summary | |
PLException()
Creates a new PLException
with no description. |
|
PLException(java.lang.String s)
Creates a new PLException
with the description given as argument. |
Method Summary | |
static PLException |
translateException(PLTerm prologException)
Translated a Prolog exception represented as a term in a Java PLException. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PLException()
PLException
with no description.
public PLException(java.lang.String s)
PLException
with the description given as argument.
s
- String that contains the description of the
exception.Method Detail |
public static PLException translateException(PLTerm prologException)
prologException
- PLTerm
object that represents
the Prolog exception.
PLException
object with the Java exception
representing the Prolog exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |