jTryCatch: Standard Java exception handling for XLConnect

Description Usage Arguments Details Author(s) See Also Examples

View source: R/jTryCatch.R

Description

Catches Java exceptions to create nicer error messages.

Usage

1

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 http://www.mirai-solutions.com

See Also

tryCatch, stop

Examples

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

XLConnect documentation built on May 29, 2017, 7:04 p.m.