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

NextPrevUpTopContentsIndex

report-error-to-java-host

Function
Summary

Tries to report an error to the Java host.

Package

lw-ji

Signature

report-error-to-java-host error-string log-file-string => result

Arguments

error-string

A string.

log-file-string

A string or nil.

Values

result

A boolean.

Description

The function report-error-to-java-host tries to report an error to the Java host.

It is assumed that error-string specifies the error and log-file-string specifies a file where a log of the error is written. report-error-to-java-host funcalls the function that was passed as the report-error-to-java-host argument to init-java-interface, or the default function, with these two arguments.

On Android the keyword argument to init-java-interface is passed with a function that invokes the user Java error reporters (set in Java by com.lispworks.Manager.setErrorReporter and com.lispworks.Manager.setGuiErrorReporter).

The default function just prints to cl:*terminal-io*, which may be useful enough for debugging.

result is t if there is a function, and nil otherwise.

See also

init-java-interface


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex