public static Exception HandleUnexpectedException(Exception ex, string trackingId)
        {
            var exceptionMessage = $"Unexpected exception encountered {CreateClientTrackingExceptionInfo(trackingId)}";
            var details          = new MessagingExceptionDetail(ExceptionErrorCodes.UnknownExceptionDetail, exceptionMessage, ErrorLevelType.ClientConnection, null, trackingId);

            throw new MessagingException(details, false, ex);
        }
        public static Exception HandleXmlException(XmlException exception, string trackingId)
        {
            var details = new MessagingExceptionDetail(ExceptionErrorCodes.InternalFailure, SRClient.InvalidXmlFormat, ErrorLevelType.ServerError, null, trackingId);

            return(new MessagingException(details, false, exception));
        }