JC-1508 Added parsing of error messages.
JC-1508 Added basic exceptions.
JC-1508 Included basic structure changes.