implemented ParseErrorUtils

converts codes to typed objects for errors