Added support for parsing of exceptions as well.