/// <summary> /// Handles proxy authentication error. /// </summary> /// <param name="exception">The exception to be handled.</param> /// <returns>true if and only if the error was handled successfully.</returns> public static bool HandleError(Exception exception) { var error = ServiceHelper.GetCommunicationError(exception); if (error != CommunicationError.ProxyAuthenticationRequired) { return(false); } return(_currentHandler()); }
/// <summary> /// Creates CommunicationException object using the specified server title /// and exception instance. /// </summary> public static CommunicationException CreateCommException( string serverTitle, Exception ex) { Debug.Assert(serverTitle != null); // get error code CommunicationError code = ServiceHelper.GetCommunicationError(ex); return(new ESRI.ArcLogistics.CommunicationException( String.Format(Properties.Messages.Error_ServerUnavailable, serverTitle), serverTitle, code, ex)); }