jTryCatch: Standard Java exception handling for XLConnect

View source: R/jTryCatch.R

jTryCatchR Documentation

Standard Java exception handling for XLConnect

Description

Catches Java exceptions to create nicer error messages.

Usage

jTryCatch(...)

Arguments

...

Arguments to tryCatch - an expression and optionally the argument finally to specify an expression to be evaluated before returning or exiting.

Details

This function specifies a Java Throwable error handler that catches any Java exceptions. Caught exceptions are post-processed and re-thrown using stop.

Author(s)

Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch

See Also

tryCatch, stop

Examples

## Not run: 
try(XLConnect:::jTryCatch(J("java.lang.Integer")$valueOf("not an integer")))

## End(Not run)

miraisolutions/xlconnect documentation built on April 14, 2024, 10:34 a.m.