code: private void checkWorkCompletionException(WorkWrapper wrapper) throws WorkException
     {
        if (wrapper.getWorkException() != null)
        {
           if (trace)
              log.tracef("Exception %s for %s", wrapper.getWorkException(), this);
  
           deltaWorkFailed();
  
           throw wrapper.getWorkException();
        }
  
        deltaWorkSuccessful();
     }
docs: Checks work completed status.
  @param wrapper work wrapper instance
  @throws {@link WorkException} if work is completed with an exception