@PublicAPI public class JobCreationException extends SchedulerException
Constructor and Description |
---|
JobCreationException(boolean schemaException,
Throwable cause)
Create a new instance of JobCreationException and tell if it was a schema exception
|
JobCreationException(String message)
Create a new instance of JobCreationException using the given message string
|
JobCreationException(String tag,
String attribute,
Exception cause)
Create a new instance of JobCreationException using the given tag, attribute and cause.
|
JobCreationException(String message,
Throwable cause)
Create a new instance of JobCreationException using the given message string and cause
|
JobCreationException(Throwable cause)
Create a new instance of JobCreationException using the given message string
|
JobCreationException(XMLTags tag,
String attribute,
Exception cause)
Create a new instance of JobCreationException using the given tag, attribute and cause.
|
Modifier and Type | Method and Description |
---|---|
XMLAttributes |
getAttribute()
Get the attribute where the exception has been thrown.
|
String |
getMessage()
Return the detail message string of this exception.
|
String |
getShortMessage()
Return only the message that is the cause of the exception.
|
String |
getTaskName()
Get the taskName where the exception has been thrown.
|
Stack<XMLTags> |
getXMLTagsStack()
Return a stack that contains every tags (path) to the element that causes the exception.
|
boolean |
isSchemaException()
Get the isSchemaException
|
void |
pushTag(String currentTag)
Push a new tag on the stack of tag for this exception
|
void |
pushTag(XMLTags currentTag)
Push a new tag on the stack of tag for this exception
|
void |
setTaskName(String taskName)
Set the task name on which the problem was found
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public JobCreationException(String message)
message
- the reason of the exceptionpublic JobCreationException(Throwable cause)
cause
- the reason of the exceptionpublic JobCreationException(String message, Throwable cause)
message
- the reason of the exceptioncause
- the cause of this exceptionpublic JobCreationException(boolean schemaException, Throwable cause)
schemaException
- true if this exception is due to a Schema exception, false otherwise.cause
- the cause of this exceptionpublic JobCreationException(String tag, String attribute, Exception cause)
tag
- the XML tag name where the exception is thrownattribute
- the XML attribute name where the exception is throwncause
- the cause of this exceptionpublic JobCreationException(XMLTags tag, String attribute, Exception cause)
tag
- the XML tag where the exception is thrownattribute
- the XML attribute name where the exception is throwncause
- the cause of this exceptionpublic void setTaskName(String taskName)
taskName
- the name of the task that generate the problempublic void pushTag(String currentTag)
currentTag
- the tag name to stack.public void pushTag(XMLTags currentTag)
currentTag
- the tag to stack.public Stack<XMLTags> getXMLTagsStack()
public String getMessage()
getMessage
in class Throwable
public String getShortMessage()
public boolean isSchemaException()
public String getTaskName()
public XMLAttributes getAttribute()