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

NextPrevUpTopContentsIndex

java-definition-error

java-class-error

java-method-error

java-field-error

Conditions
Summary

Conditions that are signaled when code defined by the Java interface fails to execute.

Package

lw-ji

Superclasses

java-interface-error

Subclasses

None.

Readers

java-definition-error-class-name
java-definition-error-name

For java-method-error only:

java-method-error-method-name
java-method-error-args-num

For java-field-error only:

java-field-error-field-name
java-field-error-static-p

Description

The condition classes java-class-error, java-method-error and java-field-error are signaled when code that is defined by the Java interface (for example, define-java-caller, define-field-accessor) fails to execute because the Java entity that it expects is not found.

They are subclasses of java-definition-error. java-definition-error is never signaled, and you should not signal these conditions.

The errors normally occur because the definition is wrong in some sense, but they can also happen if the Java virtual machine misses some of the classes or has a class definition that differs from what it should be.

java-definition-error-name returns the name of the Lisp function that fails, for example the name in the define-java-caller form.

java-definition-error-class-name returns the class name in the definition.

java-method-error-method-name returns the method name. If it is a constructor (define-java-constructor), java-method-error-method-name returns nil.

java-method-error-args-num returns the number of arguments that were passed to the call.

java-field-error-field-name returns the field name.

java-field-error-static-p queries whether the field was defined as static.

See also

define-java-constructor
define-java-caller
define-field-accessor


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex