Class JobException

  • All Implemented Interfaces:
    java.io.Serializable

    public class JobException
    extends java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JobException​(java.lang.String s, java.lang.Exception nestedException)
      Creates a JobException with a message and a nested exception.
      JobException​(java.lang.String s, java.lang.Exception nestedException, boolean furtherScheduleAllowed)
      Creates a JobException with a message, a nested exception, and a flag concerning further schedules.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception getNestedException()
      Returns the nested exception.
      boolean isFurtherScheduleAllowed()
      Returns whether further schedules are allowed or not.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JobException

        public JobException​(java.lang.String s,
                            java.lang.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​(java.lang.String s,
                            java.lang.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 Detail

      • getNestedException

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable