Class JacksonExceptionHandler
java.lang.Object
org.odpi.openmetadata.platformchassis.springboot.ffdc.JacksonExceptionHandler
Exception handler for Jackson serialization/deserialization errors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<FFDCResponseBase>handleDatabindException(com.fasterxml.jackson.databind.DatabindException databindException) Handle all databind level processing problems, as distinct from stream-level problems or I/O issues above.org.springframework.http.ResponseEntity<FFDCResponseBase>handleStreamReadException(com.fasterxml.jackson.core.exc.StreamReadException streamReadException) Handler for all read-side streaming processing problems, including parsing and input value coercion problems.
-
Constructor Details
-
JacksonExceptionHandler
public JacksonExceptionHandler()
-
-
Method Details
-
handleStreamReadException
@ExceptionHandler(com.fasterxml.jackson.core.exc.StreamReadException.class) public org.springframework.http.ResponseEntity<FFDCResponseBase> handleStreamReadException(com.fasterxml.jackson.core.exc.StreamReadException streamReadException) Handler for all read-side streaming processing problems, including parsing and input value coercion problems.- Parameters:
streamReadException- the exception that occurred during parsing- Returns:
- 400 Bad Request
-
handleDatabindException
@ExceptionHandler(com.fasterxml.jackson.databind.DatabindException.class) public org.springframework.http.ResponseEntity<FFDCResponseBase> handleDatabindException(com.fasterxml.jackson.databind.DatabindException databindException) Handle all databind level processing problems, as distinct from stream-level problems or I/O issues above.- Parameters:
databindException- the databind exception that occurred- Returns:
- 400 Bad Request
-