org.ujac.print
Class DocumentHandlerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ujac.util.UjacException
              extended by org.ujac.print.DocumentHandlerException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AssertionException, TagAttributeException, TagInstantiationException

public class DocumentHandlerException
extends UjacException

Name: DocumentHandlerException.java
Description: A class for document handler related exceptions.

Author:
lauerc
See Also:
Serialized Form

Constructor Summary
DocumentHandlerException(Locator locator, String msg)
          Constructs a DocumentHandlerException instance with no specific arguments.
DocumentHandlerException(Locator locator, String msg, Throwable cause)
          Constructs a DocumentHandlerException instance with no specific arguments.
 
Method Summary
 Locator getLocator()
          Gets the document locator, where the exception happened.
 void printStackTrace(PrintStream stream)
           
 void printStackTrace(PrintWriter writer)
           
 
Methods inherited from class org.ujac.util.UjacException
getOriginalCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentHandlerException

public DocumentHandlerException(Locator locator,
                                String msg)
Constructs a DocumentHandlerException instance with no specific arguments.

Parameters:
locator - Holds the locator of the XML document, where the exception occured.
msg - The error message.

DocumentHandlerException

public DocumentHandlerException(Locator locator,
                                String msg,
                                Throwable cause)
Constructs a DocumentHandlerException instance with no specific arguments.

Parameters:
locator - Holds the locator of the XML document, where the exception occured.
msg - The error message.
cause - The cause of the error.
Method Detail

getLocator

public Locator getLocator()
Gets the document locator, where the exception happened.

Returns:
The document locator, where the exception happened.

printStackTrace

public void printStackTrace(PrintStream stream)
Overrides:
printStackTrace in class UjacException
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public void printStackTrace(PrintWriter writer)
Overrides:
printStackTrace in class UjacException
See Also:
Throwable.printStackTrace(java.io.PrintWriter)


Copyright © 2003-2004 UJAC.org. All Rights Reserved.