Class TmaRestControllerAdvice
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaRestControllerAdvice
ControllerAdvise to handle MethodArgumentNotValid exception for TMA WebServices
- Since:
- 2003
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetMessage(org.springframework.web.bind.MethodArgumentNotValidException ex) handleInvalidRequest(org.springframework.web.bind.MethodArgumentNotValidException exception)
-
Constructor Details
-
TmaRestControllerAdvice
public TmaRestControllerAdvice()
-
-
Method Details
-
handleInvalidRequest
@ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody public TmaErrorData handleInvalidRequest(org.springframework.web.bind.MethodArgumentNotValidException exception) -
getMessage
-