Package com.swiftmq.swiftlet.scheduler
Class JobException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.swiftmq.swiftlet.scheduler.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()
-
-
-
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
- MessagenestedException
- 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
- MessagenestedException
- nested exceptionfurtherScheduleAllowed
- 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 classjava.lang.Throwable
-
-