error handling on parsing exceptions