Java 类org.springframework.core.NestedExceptionUtils 实例源码

项目:spring4-understanding    文件:NestedServletExceptionTests.java   
@Test
public void testNestedServletExceptionStringThrowable() {
    Throwable cause = new RuntimeException();
    NestedServletException exception = new NestedServletException("foo", cause);
    assertEquals(NestedExceptionUtils.buildMessage("foo", cause), exception.getMessage());
    assertEquals(cause, exception.getCause());
}
项目:class-guard    文件:NestedServletExceptionTests.java   
@Test
public void testNestedServletExceptionStringThrowable() {
    Throwable cause = new RuntimeException();
    NestedServletException exception = new NestedServletException("foo", cause);
    assertEquals(NestedExceptionUtils.buildMessage("foo", cause), exception.getMessage());
    assertEquals(cause, exception.getCause());
}
项目:lams    文件:NestedServletException.java   
/**
 * Return the detail message, including the message from the nested exception
 * if there is one.
 */
@Override
public String getMessage() {
    return NestedExceptionUtils.buildMessage(super.getMessage(), getCause());
}
项目:spring4-understanding    文件:NestedServletException.java   
/**
 * Return the detail message, including the message from the nested exception
 * if there is one.
 */
@Override
public String getMessage() {
    return NestedExceptionUtils.buildMessage(super.getMessage(), getCause());
}
项目:class-guard    文件:NestedServletException.java   
/**
 * Return the detail message, including the message from the nested exception
 * if there is one.
 */
@Override
public String getMessage() {
    return NestedExceptionUtils.buildMessage(super.getMessage(), getCause());
}