org.apache.pluto.portalImpl.xml
Class XmlException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.pluto.portalImpl.xml.XmlException
All Implemented Interfaces:
java.io.Serializable

public class XmlException
extends java.lang.Exception

The XMLException class defines a general exception that may occur during portlet.xml or web.xml handling

See Also:
Serialized Form

Constructor Summary
XmlException()
          Constructs a new xml exception.
XmlException(java.lang.String text)
          Constructs a new xml exception with the given text.
XmlException(java.lang.String text, java.lang.Throwable cause)
          Constructs a new xml exception to throw an exception and include a message about the "root case" that interfered with its normal operation, including a description message.
XmlException(java.lang.Throwable cause)
          Constructs a new xml exception to throw an exception.
 
Method Summary
 java.lang.Throwable getRootCause()
          Returns the exception that caused this xml exception.
 void printStackTrace()
          Prints the stack trace of this exception to the standard error stream.
 void printStackTrace(java.io.PrintStream out)
          Prints the stack trace of this exception to the specified print stream.
 void printStackTrace(java.io.PrintWriter out)
          Prints the stack trace of this exception to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlException

public XmlException()
Constructs a new xml exception.


XmlException

public XmlException(java.lang.String text)
Constructs a new xml exception with the given text.

Parameters:
text - the exception text

XmlException

public XmlException(java.lang.String text,
                    java.lang.Throwable cause)
Constructs a new xml exception to throw an exception and include a message about the "root case" that interfered with its normal operation, including a description message.

Parameters:
text - the exception text
cause - the root cause

XmlException

public XmlException(java.lang.Throwable cause)
Constructs a new xml exception to throw an exception. The exception's message is based on the localized message of the underlying exception.

Parameters:
cause - the root cause
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the exception that caused this xml exception.

Returns:
the Throwable that caused this xml exception

printStackTrace

public void printStackTrace()
Prints the stack trace of this exception to the standard error stream.


printStackTrace

public void printStackTrace(java.io.PrintStream out)
Prints the stack trace of this exception to the specified print stream.

Parameters:
out - the PrintStream to use for output

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Prints the stack trace of this exception to the specified print writer.

Parameters:
out - the PrintWriter to use for output.


Copyright © 2003-2005 . All Rights Reserved.