public class TypeError extends LispError
Modifier and Type | Field and Description |
---|---|
private static Primitive |
TYPE_ERROR_DATUM |
private static Primitive |
TYPE_ERROR_EXPECTED_TYPE |
layout, slots
Modifier | Constructor and Description |
---|---|
|
TypeError() |
protected |
TypeError(LispClass cls) |
|
TypeError(LispObject initArgs) |
|
TypeError(LispObject datum,
LispObject expectedType) |
|
TypeError(String message) |
|
TypeError(String message,
LispObject datum,
LispObject expectedType) |
Modifier and Type | Method and Description |
---|---|
LispObject |
classOf() |
LispObject |
getDatum() |
LispObject |
getExpectedType() |
String |
getMessage()
Extending classes should override this method if they want to
customize how they will be printed.
|
protected void |
initialize(LispObject initArgs) |
private void |
setDatum(LispObject datum) |
private void |
setExpectedType(LispObject expectedType) |
LispObject |
typeOf() |
LispObject |
typep(LispObject type) |
getConditionReport, getFormatArguments, getFormatControl, setFormatArguments, setFormatControl, setFormatControl, writeToString
checkStandardObject, getInstanceSlotValue, getLispClass, getParts, setInstanceSlotValue, setSlotValue, SLOT_VALUE, updateLayout
ABS, add, add, aref_long, aref, AREF, AREF, aset, aset, aset, ash, ash, atom, ATOM, caddr, cadr, car, cddr, cdr, CHAR, characterp, CHARACTERP, chars, COMPLEXP, constantp, CONSTANTP, copyToArray, decr, DENOMINATOR, dispatch, divideBy, doubleValue, elt, endp, ENDP, EQ, eql, eql, eql, EQL, equal, equal, EQUAL, equalp, equalp, evenp, EVENP, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, floatp, FLOATP, floatValue, getBooleanValue, getCallCount, getDescription, getDocumentation, getFixnumSlotValue, getHotCount, getInstance, getPropertyList, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValue, getSlotValueAsBoolean, getStringChars, getStringValue, getSymbolFunction, getSymbolFunctionOrDie, getSymbolSetfFunction, getSymbolSetfFunctionOrDie, getSymbolValue, incr, incrementCallCount, incrementHotCount, integerp, INTEGERP, intValue, IS_E, IS_GE, IS_GT, IS_LE, IS_LT, IS_NE, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNotEqualTo, isNotEqualTo, isSpecialOperator, isSpecialVariable, javaInstance, javaInstance, LDB, length, LENGTH, listp, LISTP, lockableInstance, LOGAND, LOGAND, LOGIOR, LOGIOR, LOGNOT, LOGXOR, LOGXOR, longValue, minusp, MINUSP, MOD, MOD, multiplyBy, multiplyBy, negate, noFillPointer, NOT, nreverse, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, psxhash, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, reverse, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setPropertyList, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, setSlotValue, SIMPLE_STRING_P, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, sxhash, SYMBOLP, truncate, unreadableString, unreadableString, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, vectorp, VECTORP, vectorPushExtend, zerop, ZEROP
private static final Primitive TYPE_ERROR_DATUM
private static final Primitive TYPE_ERROR_EXPECTED_TYPE
public TypeError()
protected TypeError(LispClass cls)
public TypeError(LispObject datum, LispObject expectedType)
public TypeError(LispObject initArgs)
public TypeError(String message)
public TypeError(String message, LispObject datum, LispObject expectedType)
protected void initialize(LispObject initArgs)
initialize
in class Condition
public LispObject typeOf()
public LispObject classOf()
public LispObject typep(LispObject type)
public String getMessage()
Condition
getMessage
in class Condition
public final LispObject getDatum()
private final void setDatum(LispObject datum)
public final LispObject getExpectedType()
private final void setExpectedType(LispObject expectedType)