added addtional function to compare stack trace dump to handled error