Currently, `error()` (which should probably be renamed...) is being called in several places whenever an `ParseException` occurs (`readComponent()`, `readProperty()`, `readParameter()`, etc.). Imho it deserves a separate method as it really helps throwing detailed `ParseException`s and keeps the code clean.

Any objections?