Skip to content

Instantly share code, notes, and snippets.

@davidalencar
Last active August 29, 2015 14:10
Show Gist options
  • Save davidalencar/19f716e19c0beabdaacd to your computer and use it in GitHub Desktop.
Save davidalencar/19f716e19c0beabdaacd to your computer and use it in GitHub Desktop.
How to get AIF Service Full Exceptions Descriptions
try
{
/* CODE */
}
}
catch (System.ServiceModel.FaultException<DAXLIMSInteg.SalesService.AifFault> axe)
{
var errorMsg = new StringBuilder();
foreach (var item in axe.Detail.InfologMessageList)
{
errorMsg.AppendLine(string.Format("{0} - {1}", item.InfologMessageType, item.Message.Trim()));
}
/* GET ERROR MSG = errorMsg.ToString(); */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment