Class ControllerExceptionHandler
- java.lang.Object
-
- de.hybris.platform.odata2webservices.controller.ControllerExceptionHandler
-
@RestControllerAdvice public class ControllerExceptionHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ControllerExceptionHandler(org.apache.olingo.odata2.api.ODataServiceFactory factory, org.springframework.core.convert.converter.Converter<org.apache.olingo.odata2.api.processor.ODataResponse,org.springframework.http.ResponseEntity<java.lang.String>> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.String>handleException(javax.servlet.http.HttpServletRequest request, java.lang.Exception exception)org.springframework.http.ResponseEntity<java.lang.String>handleInvalidODataSchemaException(javax.servlet.http.HttpServletRequest request, InvalidODataSchemaException exception)org.springframework.http.ResponseEntity<java.lang.String>handleMethodNotSupportedException(javax.servlet.http.HttpServletRequest request)org.springframework.http.ResponseEntity<java.lang.String>handleODataHttpException(javax.servlet.http.HttpServletRequest request, org.apache.olingo.odata2.api.exception.ODataException exception)org.springframework.http.ResponseEntity<java.lang.String>handleTypeAccessPermissionException(javax.servlet.http.HttpServletRequest request, TypeAccessPermissionException exception)org.springframework.http.ResponseEntity<java.lang.String>handleUpsertIntegrationObjectWithClassificationException(javax.servlet.http.HttpServletRequest request, UpsertIntegrationObjectWithClassificationAttributeException exception)
-
-
-
Constructor Detail
-
ControllerExceptionHandler
public ControllerExceptionHandler(org.apache.olingo.odata2.api.ODataServiceFactory factory, org.springframework.core.convert.converter.Converter<org.apache.olingo.odata2.api.processor.ODataResponse,org.springframework.http.ResponseEntity<java.lang.String>> converter)
-
-
Method Detail
-
handleException
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<java.lang.String> handleException(javax.servlet.http.HttpServletRequest request, java.lang.Exception exception)
-
handleMethodNotSupportedException
@ExceptionHandler(org.springframework.web.HttpRequestMethodNotSupportedException.class) public org.springframework.http.ResponseEntity<java.lang.String> handleMethodNotSupportedException(javax.servlet.http.HttpServletRequest request)
-
handleODataHttpException
@ExceptionHandler(org.apache.olingo.odata2.api.exception.ODataHttpException.class) public org.springframework.http.ResponseEntity<java.lang.String> handleODataHttpException(javax.servlet.http.HttpServletRequest request, org.apache.olingo.odata2.api.exception.ODataException exception)
-
handleInvalidODataSchemaException
@ExceptionHandler(InvalidODataSchemaException.class) public org.springframework.http.ResponseEntity<java.lang.String> handleInvalidODataSchemaException(javax.servlet.http.HttpServletRequest request, InvalidODataSchemaException exception)
-
handleUpsertIntegrationObjectWithClassificationException
@ExceptionHandler(UpsertIntegrationObjectWithClassificationAttributeException.class) public org.springframework.http.ResponseEntity<java.lang.String> handleUpsertIntegrationObjectWithClassificationException(javax.servlet.http.HttpServletRequest request, UpsertIntegrationObjectWithClassificationAttributeException exception)
-
handleTypeAccessPermissionException
@ExceptionHandler(TypeAccessPermissionException.class) public org.springframework.http.ResponseEntity<java.lang.String> handleTypeAccessPermissionException(javax.servlet.http.HttpServletRequest request, TypeAccessPermissionException exception)
-
-