You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by ni...@apache.org on 2005/02/14 20:45:11 UTC

cvs commit: logging-log4net/src/Appender AppenderSkeleton.cs

nicko       2005/02/14 11:45:11

  Modified:    src/Appender AppenderSkeleton.cs
  Log:
  Added anonymous catch handler
  
  Revision  Changes    Path
  1.6       +5 -0      logging-log4net/src/Appender/AppenderSkeleton.cs
  
  Index: AppenderSkeleton.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Appender/AppenderSkeleton.cs,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AppenderSkeleton.cs	17 Jan 2005 20:18:41 -0000	1.5
  +++ AppenderSkeleton.cs	14 Feb 2005 19:45:11 -0000	1.6
  @@ -343,6 +343,11 @@
   				{
   					ErrorHandler.Error("Failed in DoAppend", ex);
   				}
  +				catch
  +				{
  +					// Catch handler for non System.Exception types
  +					ErrorHandler.Error("Failed in DoAppend (unknown exception)");
  +				}
   				finally
   				{
   					m_recursiveGuard = false;