@Service public class ExceptionsOperationsImpl extends Object implements ExceptionsOperations
ExceptionsOperations interface.| Constructor and Description |
|---|
ExceptionsOperationsImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
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. |
protected void activate(org.osgi.service.component.ComponentContext context)
public 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.addExceptionHandler in interface ExceptionsOperationsexception - 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.