No practical difference, but there’s another difference in your example code – print
goes to standard out, but the exception text goes to standard error (which is probably what you want).
No practical difference, but there’s another difference in your example code – print
goes to standard out, but the exception text goes to standard error (which is probably what you want).