org.jfree.xml

Class ElementDefinitionException


public class ElementDefinitionException
extends ParseException

A reportdefinition exception is thrown when the parsing of the report definition failed because invalid or missing attributes are encountered.
Author:
Thomas Morgner

Constructor Summary

ElementDefinitionException(Exception e)
Creates a new ElementDefinitionException with an parent exception and with the parents message as explaination.
ElementDefinitionException(Exception e, Locator locator)
Creates a new ParseException with the given root exception and the locator.
ElementDefinitionException(Exception e, String message)
Creates a new ElementDefinitionException with an parent exception and with the given message as explaination.
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

Exception
getParentException()
Returns the parent exception.
void
printStackTrace(PrintStream s)
Prints the stack trace.
void
printStackTrace(PrintWriter s)
Prints the stack trace.

Methods inherited from class org.jfree.xml.ParseException

fillLocation, getColumn, getLine, getMessage, printStackTrace, printStackTrace, toString

Constructor Details

ElementDefinitionException

public ElementDefinitionException(Exception e)
Creates a new ElementDefinitionException with an parent exception and with the parents message as explaination.
Parameters:
e - the parentException that caused this exception

ElementDefinitionException

public ElementDefinitionException(Exception e,
                                  Locator locator)
Creates a new ParseException with the given root exception and the locator.
Parameters:
e - the exception
locator - the locator of the parser

ElementDefinitionException

public ElementDefinitionException(Exception e,
                                  String message)
Creates a new ElementDefinitionException with an parent exception and with the given message as explaination.
Parameters:
e - the parentException that caused this exception
message - a detail message explaining the reasons for this exception

ElementDefinitionException

public ElementDefinitionException(String message)
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

public ElementDefinitionException(String s,
                                  Exception e,
                                  Locator locator)
Creates a new ParseException with the given message, root exception and the locator.
Parameters:
s - the message
e - the exception
locator - the locator of the parser

ElementDefinitionException

public ElementDefinitionException(String message,
                                  Locator locator)
Creates a new ParseException with the given message and the locator.
Parameters:
message - the message
locator - the locator of the parser

Method Details

getParentException

public Exception getParentException()
Returns the parent exception.
Returns:
the parent exception.

printStackTrace

public void printStackTrace(PrintStream s)
Prints the stack trace. If an inner exception exists, use its stack trace.
Overrides:
printStackTrace in interface ParseException
Parameters:
s - the stream for writing to.

printStackTrace

public void printStackTrace(PrintWriter s)
Prints the stack trace. If an inner exception exists, use its stack trace.
Overrides:
printStackTrace in interface ParseException
Parameters:
s - the stream for writing to.