last.try.error: Get last try-error

Description Usage Value

Description

Suppose you are debugging, and have stepped-into a try statement, and the debugger has stopped at an error. You might actually want to return that error as an object of class "try-error", just like try would if you weren't debugging. To do that, type return( last.try.error()) at the debug prompt.

Usage

1
2
# Normally you would type return( last.try.error()) at the debug prompt
last.try.error()

Value

An object of class try-error, just like try itself returns in case of error.


debug documentation built on May 30, 2017, 2:23 a.m.

Related to last.try.error in debug...