jTryCatch

0th

Percentile

Standard Java exception handling for XLConnect

Catches Java exceptions to create nicer error messages.

Keywords
internal, error
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.

See Also

tryCatch, stop

Aliases
  • jTryCatch
Examples
# NOT RUN {
try(XLConnect:::jTryCatch(J("java.lang.Integer")$valueOf("not an integer")))
# }
Documentation reproduced from package XLConnect, version 0.2-15, License: GPL-3

Community examples

Looks like there are no examples yet.