All Manuals > LispWorks User Guide and Reference Manual > 41 The LW-JI Package

NextPrevUpTopContentsIndex

java-field-setting-error

Condition
Summary

Conditions signaled when setting a field is wrong, either because the field is final or because the value supplied is wrong.

Package

lw-ji

Superclasses

None.

Subclasses

None.

Readers

java-field-setting-error-field-name
java-field-setting-error-class-name
java-field-setting-error-class-name-for-setting
java-field-setting-error-new-value

Description

Conditions of class java-field-setting-error are signaled when setting a field is wrong, either because the field is final or because the value supplied is wrong. The setting can happen either by a call to set-java-field or by using (setf name) where name was defined by either define-field-accessor or setup-field-accessor.

The new value returned by the accessor java-field-setting-error-new-value can be the keyword :is-final, which indicates that the error occurs because the field is final. Otherwise it is the new value, which is of an unacceptable type. The class-name of the field can be read using java-field-setting-error-class-name-for-setting (this is what java-field-class-name-for-setting would return for the same field).

See also

set-java-field
define-field-accessor
setup-field-accessor


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex