Spring Framework

org.springframework.core
Class NestedExceptionUtils

java.lang.Object
  extended by org.springframework.core.NestedExceptionUtils

public abstract class NestedExceptionUtils
extends java.lang.Object

Helper class for implementing exception classes which are capable of holding nested exceptions. Necessary because we can't share a base class among different exception types.

Mainly for use within the framework.

Since:
2.0
Author:
Juergen Hoeller
See Also:
NestedRuntimeException, NestedCheckedException, NestedIOException, NestedServletException

Constructor Summary
NestedExceptionUtils()
           
 
Method Summary
static java.lang.String buildMessage(java.lang.String message, java.lang.Throwable cause)
          Build a message for the given base message and root cause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedExceptionUtils

public NestedExceptionUtils()
Method Detail

buildMessage

public static java.lang.String buildMessage(java.lang.String message,
                                            java.lang.Throwable cause)
Build a message for the given base message and root cause.

Parameters:
message - the base message
cause - the root cause
Returns:
the full exception message

Spring Framework