org.apache.portals.graffito.jcr.exception
Class NestableRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.portals.graffito.jcr.exception.NestableRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JcrMappingException, PersistenceException, RepositoryException

public class NestableRuntimeException
extends java.lang.RuntimeException

Nestable runtime exception. Able to wrap a cause exception in JDK previous to 1.4

Author:
Spring framework
See Also:
Serialized Form

Constructor Summary
protected NestableRuntimeException()
          No-arg constructor used by markup exceptions.
  NestableRuntimeException(java.lang.String msg)
          Construct a NestableRuntimeException with the specified detail message.
  NestableRuntimeException(java.lang.String msg, java.lang.Throwable ex)
          Construct a NestableRuntimeException with the specified detail message and nested exception.
  NestableRuntimeException(java.lang.Throwable ex)
          Construct a NestableRuntimeException with the specified nested exception.
 
Method Summary
 java.lang.Throwable getCause()
          Return the nested cause, or null if none.
 java.lang.String getMessage()
          Return the detail message, including the message from the nested exception if there is one.
 void printStackTrace(java.io.PrintStream ps)
          Print the composite message and the embedded stack trace to the specified stream.
 void printStackTrace(java.io.PrintWriter pw)
          Print the composite message and the embedded stack trace to the specified writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestableRuntimeException

protected NestableRuntimeException()
No-arg constructor used by markup exceptions.


NestableRuntimeException

public NestableRuntimeException(java.lang.String msg)
Construct a NestableRuntimeException with the specified detail message.

Parameters:
msg - the detail message

NestableRuntimeException

public NestableRuntimeException(java.lang.String msg,
                                java.lang.Throwable ex)
Construct a NestableRuntimeException with the specified detail message and nested exception.

Parameters:
msg - the detail message
ex - the nested exception

NestableRuntimeException

public NestableRuntimeException(java.lang.Throwable ex)
Construct a NestableRuntimeException with the specified nested exception.

Parameters:
ex - the nested exception
Method Detail

getCause

public java.lang.Throwable getCause()
Return the nested cause, or null if none.

Overrides:
getCause in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Return the detail message, including the message from the nested exception if there is one.

Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Print the composite message and the embedded stack trace to the specified stream.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
ps - the print stream

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Print the composite message and the embedded stack trace to the specified writer.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
pw - the print writer


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.