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