jpl::PrologException Class Reference

Inheritance diagram for jpl::PrologException:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Term term ()

Protected Member Functions

 PrologException (Term term)

Private Attributes

Term term_ = null

Static Private Attributes

static final long serialVersionUID = 1L

Detailed Description

PrologException instances wrap Prolog exceptions thrown (either by a Prolog engine or by user code) in the course of finding a solution to a Query. See JPLException for the handling of errors within the JPL Java-calls-Prolog interface.

This class allows Java code which uses JPL's Java-calls-Prolog API to handle Prolog exceptions, which is in general necessary for hybrid Java+Prolog programming.

Use the term() accessor to obtain a Term representation of the term that was thrown from within Prolog.


Copyright (C) 2004 Paul Singleton

Copyright (C) 1998 Fred Dushin

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library Public License for more details.


Author:
Fred Dushin <fadushin@syr.edu>
Version:
$Revision$

Definition at line 59 of file PrologException.java.


Constructor & Destructor Documentation

jpl::PrologException::PrologException ( Term  term  )  [inline, protected]

Definition at line 63 of file PrologException.java.


Member Function Documentation

Term jpl::PrologException::term (  )  [inline]
Returns:
a reference to the Term thrown by the call to throw/1

Definition at line 72 of file PrologException.java.


Member Data Documentation

final long jpl::PrologException::serialVersionUID = 1L [static, private]

Reimplemented from jpl::JPLException.

Definition at line 60 of file PrologException.java.

Definition at line 61 of file PrologException.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Defines


jpl
Author(s): Lorenz Moesenlechner
autogenerated on Fri Jan 11 09:40:31 2013