Exception handling i parsern