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

java-field-setting-error Condition Class

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

java-interface-error

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

Instances of the condition 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 - 01 Dec 2021 19:30:46