96979899100101102103104105106107
} } catch (IllegalArgumentException ex) { if (listener != null) { listener.workRejected(work); } else { throw new WorkSchedulerException(ex); } } catch (Exception ex) { throw new WorkSchedulerException(ex); } }
213214215216217218219220
workStarted(workItem, decoratedWork); try { decoratedWork.run(); workCompleted(workItem, decoratedWork); } catch (Throwable th) { workCompleted(workItem, decoratedWork, new WorkSchedulerException(th.getMessage(), th)); } }
100101102103104105106107108109110111
212213214215216217218219
111112113114115116117118119120121122
8990919293949596979899100
} } catch (WorkRejectedException ex) { if (listener != null) { listener.workRejected(work); } else { throw new WorkSchedulerException(ex); } } catch (WorkException ex) { throw new WorkSchedulerException(ex); } }
101102103104105106107108109110111112
107108109110111112113114115116117118