Use exception handling for parsing error.