Source/NFX.Wave/WaveServer.cs
/// <summary>
/// Handles processing exception by calling ErrorFilter.HandleException(work, error).
/// All parameters except ERROR can be null - which indicates error that happened during WorkContext dispose
/// </summary>
Handles processing exception by calling ErrorFilter.HandleException(work, error).
All parameters except ERROR can be null - which indicates error that happened during WorkContext dispose
Handles processing exception by calling ErrorFilter . HandleException ( work error ) . All parameters except ERROR can be null - which indicates error that happened during WorkContext dispose
public virtual void HandleException(WorkContext work, WorkFilter filter, WorkHandler handler, Exception error)
      {
         try
         {
            if (m_InstrumentationEnabled) Interlocked.Increment(ref m_stat_ServerHandleException);
            if (work!=null)
              ErrorFilter.HandleException(work, error, m_ErrorShowDumpMatches, m_ErrorLogMatches);
            else
             Log(MessageType.Error,
                 StringConsts.SERVER_DEFAULT_ERROR_WC_NULL_ERROR + error.ToMessageWithType(),
                 "HandleException()",
                 error);
         }
         catch(Exception error2)
         {
            if (m_LogHandleExceptionErrors)
              try
              {
                Log(MessageType.Error,
                     StringConsts.SERVER_DEFAULT_ERROR_HANDLER_ERROR + error2.ToMessageWithType(),
                     "HandleException.catch()",
                     error2,
                     pars: new
                      {
                        OriginalError = error.ToMessageWithType()
                      }.ToJSON()
                     );
              }
              catch{}
         }
      }
public virtual void HandleException ( WorkContext work , WorkFilter filter , WorkHandler handler , Exception error ) { try { if ( m_InstrumentationEnabled ) Interlocked . Increment ( ref m_stat_ServerHandleException ) ; if ( work != null ) ErrorFilter . HandleException ( work , error , m_ErrorShowDumpMatches , m_ErrorLogMatches ) ; else Log ( MessageType . Error , StringConsts . SERVER_DEFAULT_ERROR_WC_NULL_ERROR + error . ToMessageWithType ( ) , " " , error ) ; } catch ( Exception error2 ) { if ( m_LogHandleExceptionErrors ) try { Log ( MessageType . Error , StringConsts . SERVER_DEFAULT_ERROR_HANDLER_ERROR + error2 . ToMessageWithType ( ) , " " , error2 , pars : new { OriginalError = error . ToMessageWithType ( ) } . ToJSON ( ) ) ; } catch { } } }
Handles processing exception by calling ErrorFilter.HandleException(work, error).
Handles processing exception by calling ErrorFilter . HandleException ( work error ) .
//work may be null (when WorkContext is already disposed)
work
WorkContext
filter
WorkFilter
handler
WorkHandler
error
Exception