Class SystemOneApiResponseValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.ai.systemone.api.exception.SystemOneException
org.springframework.ai.systemone.api.exception.SystemOneApiException
org.springframework.ai.systemone.api.exception.SystemOneApiResponseValidationException
- All Implemented Interfaces:
Serializable
Raised when a successful HTTP response is missing data the client requires, for example
an empty body or an absent
answers map.- Since:
- 2.1.0
- Author:
- Christian Tzolov
- See Also:
-
Field Summary
Fields inherited from class org.springframework.ai.systemone.api.exception.SystemOneApiException
REQUEST_ID_HEADER -
Constructor Summary
ConstructorsConstructorDescriptionSystemOneApiResponseValidationException(String message, int status, @Nullable String body, org.springframework.http.HttpHeaders headers, String endpoint, @Nullable String fieldPath) -
Method Summary
Methods inherited from class org.springframework.ai.systemone.api.exception.SystemOneApiException
body, endpoint, errorDetail, errorMessage, errorType, headers, requestId, status, validationErrorsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SystemOneApiResponseValidationException
-
-
Method Details
-
fieldPath
- Returns:
- the dotted path to the offending field, or
nullwhen the whole body was missing
-