public class ResponseStatusWebErrorHandler extends Object implements WebErrorHandler
WebErrorHandler implementation expert at handling exceptions of type
ResponseStatusException.| Constructor and Description |
|---|
ResponseStatusWebErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(Throwable exception)
Only can handle exceptions of type
ResponseStatusException. |
HandledException |
handle(Throwable exception)
Handle each subtype of
ResponseStatusException class in its own unique and appropriate way. |
public boolean canHandle(Throwable exception)
ResponseStatusException.canHandle in interface WebErrorHandlerexception - The exception to examine.true for ResponseStatusExceptions, false for others.@NonNull public HandledException handle(Throwable exception)
ResponseStatusException class in its own unique and appropriate way.handle in interface WebErrorHandlerexception - The exception to handle.Copyright © 2019. All rights reserved.