Extract exception information.