Ported exceptions from parsers; added types