The R Project SVN R

Rev

Rev 61150 | Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61150 Rev 63173
Line 199... Line 199...
199
\references{The \code{tryCatch} mechanism is similar to Java
199
\references{The \code{tryCatch} mechanism is similar to Java
200
  error handling.  Calling handlers are based on Common Lisp and
200
  error handling.  Calling handlers are based on Common Lisp and
201
  Dylan.  Restarts are based on the Common Lisp restart mechanism.}
201
  Dylan.  Restarts are based on the Common Lisp restart mechanism.}
202
 
202
 
203
\seealso{\code{\link{stop}} and \code{\link{warning}} signal conditions,
203
\seealso{\code{\link{stop}} and \code{\link{warning}} signal conditions,
204
  and \code{\link{try}} is essentially a simplified version of \code{tryCatch}.
204
  and \code{\link{try}} is essentially a simplified version of
-
 
205
  \code{tryCatch}.
-
 
206
  \code{\link{assertCondition}} in package \pkg{tools} \emph{tests}
-
 
207
  that conditions are signalled and works with several of the above
-
 
208
  handlers.
205
}
209
}
206
 
210
 
207
\examples{
211
\examples{
208
tryCatch(1, finally = print("Hello"))
212
tryCatch(1, finally = print("Hello"))
209
e <- simpleError("test error")
213
e <- simpleError("test error")