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

3 lines
94 B
R

stop("An error has occured")
stop(e) #where e is a simpleError, as above