blob: 6b82ecaa68115c937273c9d89f9688031079acde [file] [log] [blame]
package jp.ac.kobe_u.cs.prolog.lang;
/**
* User-defined exception.<br>
*
* This <code>TermException</code> is used to implement
* built-in predicate <code>throw/1</code>.
*
* @author Mutsunori Banbara (banbara@kobe-u.ac.jp)
* @author Naoyuki Tamura (tamura@kobe-u.ac.jp)
* @version 1.0
*/
public class TermException extends PrologException {
/** Message as term. */
Term message;
/** Constructs a new <code>TermException</code>. */
public TermException(){}
/** Constructs a new <code>TermException</code> with a given message term. */
public TermException(Term _message){
message = _message;
}
public Term getMessageTerm() {
return message;
}
}