Package org.jfree.xml
Class ElementDefinitionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.xml.sax.SAXException
org.jfree.xml.ParseException
org.jfree.xml.ElementDefinitionException
- All Implemented Interfaces:
Serializable
A reportdefinition exception is thrown when the parsing of the report definition
failed because invalid or missing attributes are encountered.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ElementDefinitionException with an parent exception and with the parents message as explaination.ElementDefinitionException
(Exception e, String message) Creates a new ElementDefinitionException with an parent exception and with the given message as explaination.ElementDefinitionException
(Exception e, Locator locator) Creates a new ParseException with the given root exception and the locator.ElementDefinitionException
(String message) Creates a new ElementDefinitionException without an parent exception and with the given message as explanation.ElementDefinitionException
(String s, Exception e, Locator locator) Creates a new ParseException with the given message, root exception and the locator.ElementDefinitionException
(String message, Locator locator) Creates a new ParseException with the given message and the locator. -
Method Summary
Modifier and TypeMethodDescriptionReturns the parent exception.void
Prints the stack trace.void
Prints the stack trace.Methods inherited from class org.jfree.xml.ParseException
fillLocation, getColumn, getLine, getMessage, toString
Methods inherited from class org.xml.sax.SAXException
getCause, getException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
-
Field Details
-
parent
The parent exception.
-
-
Constructor Details
-
ElementDefinitionException
Creates a new ElementDefinitionException without an parent exception and with the given message as explanation.- Parameters:
message
- a detail message explaining the reasons for this exception.
-
ElementDefinitionException
Creates a new ElementDefinitionException with an parent exception and with the parents message as explaination.- Parameters:
e
- the parentException that caused this exception
-
ElementDefinitionException
Creates a new ElementDefinitionException with an parent exception and with the given message as explaination.- Parameters:
e
- the parentException that caused this exceptionmessage
- a detail message explaining the reasons for this exception
-
ElementDefinitionException
Creates a new ParseException with the given root exception and the locator.- Parameters:
e
- the exceptionlocator
- the locator of the parser
-
ElementDefinitionException
Creates a new ParseException with the given message and the locator.- Parameters:
message
- the messagelocator
- the locator of the parser
-
ElementDefinitionException
Creates a new ParseException with the given message, root exception and the locator.- Parameters:
s
- the messagee
- the exceptionlocator
- the locator of the parser
-
-
Method Details
-
getParentException
Returns the parent exception.- Returns:
- the parent exception.
-
printStackTrace
Prints the stack trace. If an inner exception exists, use its stack trace.- Overrides:
printStackTrace
in classParseException
- Parameters:
s
- the stream for writing to.
-
printStackTrace
Prints the stack trace. If an inner exception exists, use its stack trace.- Overrides:
printStackTrace
in classParseException
- Parameters:
s
- the stream for writing to.
-