Ported Parser error handling from RTruffleSOM

Signed-off-by: Stefan Marr <git@stefan-marr.de>