public interface ExceptionsOperations
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionHandler(org.springframework.roo.model.JavaType exception,
org.springframework.roo.model.JavaType controller,
org.springframework.roo.model.JavaType adviceClass,
String errorView)
Adds the annotation
RooExceptionHandlers and exception handler methods
on a controller or a class annotated with ControllerAdvice. |
void addExceptionHandler(org.springframework.roo.model.JavaType exception,
org.springframework.roo.model.JavaType controller,
org.springframework.roo.model.JavaType adviceClass,
String errorView)
RooExceptionHandlers and exception handler methods
on a controller or a class annotated with ControllerAdvice.exception - Class that extends Exception or RuntimeException.controller - Existing controller to add exception handler methods.adviceClass - New or existing class annotated with ControllerAdvice
to add exception handler methods.errorView - View to be returned when exception is thrownCopyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.