You can use try_catch blocks to test the usefulness of syntax or, within scripts, to isolate a sequence of steps. See Bypass Errors.