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