Example usage for org.springframework.aop.interceptor CustomizableTraceInterceptor PLACEHOLDER_EXCEPTION

List of usage examples for org.springframework.aop.interceptor CustomizableTraceInterceptor PLACEHOLDER_EXCEPTION

Introduction

In this page you can find the example usage for org.springframework.aop.interceptor CustomizableTraceInterceptor PLACEHOLDER_EXCEPTION.

Prototype

String PLACEHOLDER_EXCEPTION

To view the source code for org.springframework.aop.interceptor CustomizableTraceInterceptor PLACEHOLDER_EXCEPTION.

Click Source Link

Document

The $[exception] placeholder.

Usage

From source file:org.springframework.aop.interceptor.CustomizableTraceInterceptorTests.java

@Test(expected = IllegalArgumentException.class)
public void testSetEnterMessageWithExceptionPlaceholder() {
    // Must not be able to set enter message with exception placeholder
    new CustomizableTraceInterceptor().setEnterMessage(CustomizableTraceInterceptor.PLACEHOLDER_EXCEPTION);
}

From source file:org.springframework.aop.interceptor.CustomizableTraceInterceptorTests.java

@Test(expected = IllegalArgumentException.class)
public void testSetExitMessageWithExceptionPlaceholder() {
    // Must not be able to set exit message with exception placeholder
    new CustomizableTraceInterceptor().setExitMessage(CustomizableTraceInterceptor.PLACEHOLDER_EXCEPTION);
}