public class PLException
extends java.lang.Exception
Constructor and Description |
---|
PLException()
Creates a new
PLException
with no description. |
PLException(java.lang.String s)
Creates a new
PLException
with the description given as argument. |
Modifier and Type | Method and Description |
---|---|
static PLException |
translateException(PLTerm prologException)
Translated a Prolog exception represented as a
term in a Java PLException.
|
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.public static PLException translateException(PLTerm prologException)
prologException
- PLTerm
object that represents
the Prolog exception.PLException
object with the Java exception
representing the Prolog exception.