1 21 22 package org.armedbear.lisp; 23 24 public class ControlError extends LispError 25 { 26 public ControlError() 27 { 28 } 29 30 public ControlError(LispObject initArgs) throws ConditionThrowable 31 { 32 super(initArgs); 33 } 34 35 public ControlError(String message) 36 { 37 super(message); 38 } 39 40 public LispObject typeOf() 41 { 42 return Symbol.CONTROL_ERROR; 43 } 44 45 public LispClass classOf() 46 { 47 return BuiltInClass.CONTROL_ERROR; 48 } 49 50 public LispObject typep(LispObject type) throws ConditionThrowable 51 { 52 if (type == Symbol.CONTROL_ERROR) 53 return T; 54 if (type == BuiltInClass.CONTROL_ERROR) 55 return T; 56 return super.typep(type); 57 } 58 } 59 | Popular Tags |