Changeset 12271
- Timestamp:
- 11/08/09 11:28:34 (14 years ago)
- Location:
- trunk/abcl/src/org/armedbear/lisp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/ControlTransfer.java
r12255 r12271 34 34 package org.armedbear.lisp; 35 35 36 /** This class is the parent class of all non-local transfer of 37 * control events in ABCL. The classes inheriting from this class each 38 * represent a transfer of control event as it is available in the 39 * standard: GO (represented by Go), RETURN (by Return) and THROW (by Throw). 40 * 41 * Please note that you should <b>only</b> be using these classes in case 42 * you've establisched a corresponding TAGBODY, BLOCK or CATCH-like 43 * construct in your code. 44 * 45 * Otherwise, be aware that if you are mixing Lisp and Java code, 46 * Lisp code being called into might throw one of the three exception types 47 * and cause execution to be transferred to the nearest handler - presumably 48 * outside your Java code. 49 * 50 */ 36 51 abstract public class ControlTransfer extends RuntimeException 37 52 { … … 39 54 { 40 55 } 56 41 57 /** 42 58 * Overridden in order to make ControlTransfer construct … … 46 62 public Throwable fillInStackTrace() 47 63 { 48 64 return this; 49 65 } 50 66 -
trunk/abcl/src/org/armedbear/lisp/ThreadDestroyed.java
r12255 r12271 34 34 package org.armedbear.lisp; 35 35 36 public class ThreadDestroyed extends ControlTransfer36 public class ThreadDestroyed extends Error 37 37 { 38 38 public ThreadDestroyed() … … 40 40 } 41 41 42 public ThreadDestroyed(String message)43 {44 super(message);45 }46 47 @Override48 public LispObject getCondition()49 {50 return new ControlError("Thread destroyed.");51 }52 42 }
Note: See TracChangeset
for help on using the changeset viewer.