I prefer this approach as well. We do the same in our client code where we catch an AifFault of whichever specific type we happen to be using (e.g., AxdSalesOrder) and then use the InfologMessageList to fill a domain-specific exception that we can use with other non-AX objects throughout the enterprise environment. This obviously only works, however, when the AIF service is configured to provide detailed exception information.
↧