Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 330906
Collapse All | Expand All

(-)src/org/eclipse/net4j/util/concurrent/Worker.java (-6 / +19 lines)
Lines 132-137 Link Here
132
    return null;
132
    return null;
133
  }
133
  }
134
134
135
  /**
136
   * @since 3.1
137
   */
138
  protected void handleError(Exception ex)
139
  {
140
    try
141
    {
142
      if (globalErrorHandler != null)
143
      {
144
        globalErrorHandler.handleError(ex);
145
      }
146
    }
147
    catch (Exception ex1)
148
    {
149
      OM.LOG.error(ex1);
150
    }
151
  }
152
135
  protected abstract void work(WorkContext context) throws Exception;
153
  protected abstract void work(WorkContext context) throws Exception;
136
154
137
  /**
155
  /**
Lines 208-219 Link Here
208
        }
226
        }
209
        catch (Exception ex)
227
        catch (Exception ex)
210
        {
228
        {
211
          if (globalErrorHandler != null)
229
          handleError(ex);
212
          {
213
            globalErrorHandler.handleError(ex);
214
          }
215
216
          break;
217
        }
230
        }
218
      }
231
      }
219
232

Return to bug 330906