Class JobException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.swiftmq.swiftlet.scheduler.JobException
All Implemented Interfaces:
Serializable

public class JobException extends Exception
A JobException is thrown by a Job or passed from a Job to a JobTerminationListener. It contains an optional nested exception and an attribute which decides whether the Job can be rescheduled or is marked as errorneous.
Author:
IIT GmbH, Bremen/Germany, Copyright (c) 2000-2003, All Rights Reserved
See Also:
  • Constructor Details

    • JobException

      public JobException(String s, Exception nestedException)
      Creates a JobException with a message and a nested exception. Further schedules are allowed.
      Parameters:
      s - Message
      nestedException - nested exception
    • JobException

      public JobException(String s, Exception nestedException, boolean furtherScheduleAllowed)
      Creates a JobException with a message, a nested exception, and a flag concerning further schedules.
      Parameters:
      s - Message
      nestedException - nested exception
      furtherScheduleAllowed - states whether further schedules are allowed or not
  • Method Details

    • getNestedException

      public Exception getNestedException()
      Returns the nested exception.
      Returns:
      nested exception
    • isFurtherScheduleAllowed

      public boolean isFurtherScheduleAllowed()
      Returns whether further schedules are allowed or not.
      Returns:
      true/false
    • toString

      public String toString()
      Overrides:
      toString in class Throwable