Class WorkManager.ScheduleWorkRejectedException

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    WorkManager

    protected static class WorkManager.ScheduleWorkRejectedException
    extends WrapperException
    The ScheduleWorkRejectedException is a WrapperException that carries the information about the rejected Work.
    See Also:
    Serialized Form
    • Constructor Detail

      • ScheduleWorkRejectedException

        protected ScheduleWorkRejectedException​(long lWorkId,
                                                Throwable eReason)
        Construct the ScheduleWorkRejectedException for a given Work id and the original cause exception.
        Parameters:
        lWorkId - the Work id
        eReason - the actual cause exception
      • ScheduleWorkRejectedException

        protected ScheduleWorkRejectedException​(long lWorkId,
                                                String sMsg)
        Construct the ScheduleWorkRejectedException for a given Work id with a specified detail message.
        Parameters:
        lWorkId - the Work id
        sMsg - the additional description
    • Method Detail

      • getWorkId

        public long getWorkId()
        Return a rejected Work id.
        Returns:
        a rejected Work id