Class ControllerExceptionHandler
java.lang.Object
de.hybris.platform.odata2webservices.controller.ControllerExceptionHandler
-
Constructor Summary
ConstructorsConstructorDescriptionControllerExceptionHandler(org.apache.olingo.odata2.api.ODataServiceFactory factory, org.springframework.core.convert.converter.Converter<org.apache.olingo.odata2.api.processor.ODataResponse, org.springframework.http.ResponseEntity<String>> converter) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>handleException(javax.servlet.http.HttpServletRequest request, Exception exception) org.springframework.http.ResponseEntity<String>handleInvalidODataSchemaException(javax.servlet.http.HttpServletRequest request, InvalidODataSchemaException exception) org.springframework.http.ResponseEntity<String>handleMethodNotSupportedException(javax.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<String>handleODataHttpException(javax.servlet.http.HttpServletRequest request, org.apache.olingo.odata2.api.exception.ODataException exception) org.springframework.http.ResponseEntity<String>handleTypeAccessPermissionException(javax.servlet.http.HttpServletRequest request, TypeAccessPermissionException exception) org.springframework.http.ResponseEntity<String>handleUpsertIntegrationObjectWithClassificationException(javax.servlet.http.HttpServletRequest request, UpsertIntegrationObjectWithClassificationAttributeException exception)
-
Constructor Details
-
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<String>> converter)
-
-
Method Details
-
handleException
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<String> handleException(javax.servlet.http.HttpServletRequest request, Exception exception) -
handleMethodNotSupportedException
@ExceptionHandler(org.springframework.web.HttpRequestMethodNotSupportedException.class) public org.springframework.http.ResponseEntity<String> handleMethodNotSupportedException(javax.servlet.http.HttpServletRequest request) -
handleODataHttpException
@ExceptionHandler(org.apache.olingo.odata2.api.exception.ODataHttpException.class) public org.springframework.http.ResponseEntity<String> handleODataHttpException(javax.servlet.http.HttpServletRequest request, org.apache.olingo.odata2.api.exception.ODataException exception) -
handleInvalidODataSchemaException
@ExceptionHandler(InvalidODataSchemaException.class) public org.springframework.http.ResponseEntity<String> handleInvalidODataSchemaException(javax.servlet.http.HttpServletRequest request, InvalidODataSchemaException exception) -
handleUpsertIntegrationObjectWithClassificationException
@ExceptionHandler(UpsertIntegrationObjectWithClassificationAttributeException.class) public org.springframework.http.ResponseEntity<String> handleUpsertIntegrationObjectWithClassificationException(javax.servlet.http.HttpServletRequest request, UpsertIntegrationObjectWithClassificationAttributeException exception) -
handleTypeAccessPermissionException
@ExceptionHandler(TypeAccessPermissionException.class) public org.springframework.http.ResponseEntity<String> handleTypeAccessPermissionException(javax.servlet.http.HttpServletRequest request, TypeAccessPermissionException exception)
-