RosettaCodeData/Task/Exceptions/R/exceptions-2.r

3 lines
94 B
R
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
stop("An error has occured")
stop(e) #where e is a simpleError, as above