1// BEGIN LICENSE BLOCK 2// Version: CMPL 1.1 3// 4// The contents of this file are subject to the Cisco-style Mozilla Public 5// License Version 1.1 (the "License"); you may not use this file except 6// in compliance with the License. You may obtain a copy of the License 7// at www.eclipse-clp.org/license. 8// 9// Software distributed under the License is distributed on an "AS IS" 10// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 11// the License for the specific language governing rights and limitations 12// under the License. 13// 14// The Original Code is The ECLiPSe Constraint Logic Programming System. 15// The Initial Developer of the Original Code is Cisco Systems, Inc. 16// Portions created by the Initial Developer are 17// Copyright (C) 2000 - 2006 Cisco Systems, Inc. All Rights Reserved. 18// 19// Contributor(s): Stefano Novello / Josh Singer, Parc Technologies 20// 21// END LICENSE BLOCK 22 23//Title: Java/ECLiPSe interface 24//Version: $Id: Throw.java,v 1.1 2006/09/23 01:54:12 snovello Exp $ 25//Author: Josh Singer / Stefano Novello 26//Company: Parc Technologies 27//Description: Exception thrown when an rpc goal throws an ECLiPSe error. 28package com.parctechnologies.eclipse; 29 30/** 31 * Exception thrown when an rpc goal throws an ECLiPSe error. 32 * A <i>Throw</i> exception occurs when an ECLiPSe goal exits 33 * by calling <code>exit_block/1</code>. The ECLiPSe exit tag 34 * is converted to an exception which is the equivalent concept 35 * in Java. 36 */ 37public class Throw extends EclipseException 38{ 39 Object goal; 40 Throw(Object goal) 41 { 42 this.goal = goal ; 43 } 44} 45