public class ConflictException extends Exception
ConflictException can be used to return ResponseEntity<Errors> from controller methods that are
defined with a different type than String.
E.g. the controller returns ResponseEntity<Application> but in case of errors a message should be returned as
ResponseEntity<Errors> together with HttpStatus.CONFLICT. To achieve this, a
ConflictException can be raised and will be caught by the
ControllerBase.onConflictException(javax.servlet.http.HttpServletRequest, ConflictException).
| Constructor and Description |
|---|
ConflictException(List<String> conflicts) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getConflicts() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2011–2023 aiticon GmbH. All rights reserved.