Test if object belongs to "error" class
is_error(x)
x
R variable
TRUE/FALSE
is_error(FALSE) is_error(simpleError("test"))