catch and print parser exceptions