[MED002.a.2.1] Implemented base class for all the exceptions
[MED002.a.2.2] Added new member for storing most current error message
[MED002.a.2.5] Fixed Exception hierarchy, added new rule to Parser for invalid 'h' parameter, added new exception and handling for it