Class VectorsControllerConfiguration.S3VectorsExceptionHandler
-
- All Implemented Interfaces:
-
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@RestControllerAdvice(basePackageClasses = {VectorBucketController.class}) public final class VectorsControllerConfiguration.S3VectorsExceptionHandler extends ResponseEntityExceptionHandlerHandles S3VectorsExceptions and serializes them to JSON with
__typeandmessagefields, matching the AWS S3 Vectors error wire format.
-
-
Field Summary
Fields Modifier and Type Field Description private MessageSourcemessageSource
-
Constructor Summary
Constructors Constructor Description VectorsControllerConfiguration.S3VectorsExceptionHandler()
-
Method Summary
Modifier and Type Method Description final ResponseEntity<VectorsErrorResponse>handleS3VectorsException(S3VectorsException ex)-
-
Method Detail
-
handleS3VectorsException
@ExceptionHandler(value = {S3VectorsException.class}) final ResponseEntity<VectorsErrorResponse> handleS3VectorsException(S3VectorsException ex)
-
-
-
-