Derive lexer errors from Exception