implemented method for dumping exception information