@ControllerAdvice public class RestErrorHandler extends Object
| Constructor and Description |
|---|
RestErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
accessDenied(Exception e) |
String |
emptyPassword(Exception e) |
String |
entityNotFound(Exception e) |
String |
incorrectRoles(Exception e) |
void |
incorrectSocurityCode() |
String |
invalidOrgName(InvalidOrganizationNameException e) |
String |
invalidUuidString(WrongUuidFormatException e) |
String |
noPendingInvitation(NoPendingInvitationFoundException e) |
UserConflictResponse |
orgExists(OrgExistsException e) |
String |
tooShortPassword(Exception e) |
String |
userExists(org.springframework.web.HttpRequestMethodNotSupportedException e) |
UserConflictResponse |
userExists(UserExistsException e) |
String |
wrongEmailAddress(Exception e) |
@ResponseStatus(value=FORBIDDEN) @ExceptionHandler(value=InvalidSecurityCodeException.class) public void incorrectSocurityCode()
@ResponseBody @ResponseStatus(value=CONFLICT) @ExceptionHandler(value=UserExistsException.class) public UserConflictResponse userExists(UserExistsException e) throws IOException
IOException@ResponseBody @ResponseStatus(value=CONFLICT) @ExceptionHandler(value=OrgExistsException.class) public UserConflictResponse orgExists(OrgExistsException e) throws IOException
IOException@ResponseBody @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=InvalidOrganizationNameException.class) public String invalidOrgName(InvalidOrganizationNameException e) throws IOException
IOException@ResponseBody @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=WrongUuidFormatException.class) public String invalidUuidString(WrongUuidFormatException e) throws IOException
IOException@ResponseBody @ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=EntityNotFoundException.class) public String entityNotFound(Exception e) throws IOException
IOException@ResponseBody @ResponseStatus(value=CONFLICT) @ExceptionHandler(value=WrongUserRolesException.class) public String incorrectRoles(Exception e) throws IOException
IOException@ResponseBody @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=WrongEmailAddressException.class) public String wrongEmailAddress(Exception e) throws IOException
IOException@ResponseBody @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=EmptyPasswordException.class) public String emptyPassword(Exception e) throws IOException
IOException@ResponseBody @ResponseStatus(value=CONFLICT) @ExceptionHandler(value=TooShortPasswordException.class) public String tooShortPassword(Exception e) throws IOException
IOException@ResponseBody @ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=NoPendingInvitationFoundException.class) public String noPendingInvitation(NoPendingInvitationFoundException e) throws IOException
IOException@ResponseBody @ResponseStatus(value=FORBIDDEN) @ExceptionHandler(value=org.springframework.security.access.AccessDeniedException.class) public String accessDenied(Exception e) throws IOException
IOException@ResponseBody @ResponseStatus(value=METHOD_NOT_ALLOWED) @ExceptionHandler(value=org.springframework.web.HttpRequestMethodNotSupportedException.class) public String userExists(org.springframework.web.HttpRequestMethodNotSupportedException e) throws IOException
IOExceptionCopyright © 2016 Pivotal Software, Inc.. All rights reserved.