Package | Description |
---|---|
org.exoplatform.acceptance.rest |
Provides eXo acceptance REST Controllers (using Spring MVC).
|
Modifier and Type | Method and Description |
---|---|
JsonErrorResponse |
JsonErrorHandler.handleDuplicateKeyException(org.springframework.dao.DuplicateKeyException ex)
Catch DuplicateKeyException when an entity creation or update doesn't a constraint of uniqueness in the mongo repository.
|
JsonErrorResponse |
JsonErrorHandler.handleEntityNotFoundException(EntityNotFoundException ex)
Catch EntityNotFoundException to return a 404 error.
|
JsonErrorResponse |
JsonErrorHandler.handleHttpMessageNotReadableException(org.springframework.http.converter.HttpMessageNotReadableException ex)
Catch HttpMessageNotReadableException to log it (helps to diagnose errors and attacks on REST services).
|
JsonErrorResponse |
JsonErrorHandler.processValidationError(org.springframework.web.bind.MethodArgumentNotValidException ex)
Catch MethodArgumentNotValidException when a Bean Validation error occurs.
|
Copyright © 2011–2016 eXo Platform SAS. All rights reserved.