parser exception handling