Interface ErrorContextPopulator
- All Known Implementing Classes:
AttributeNotInIntegrationObjectExceptionContextPopulator,CannotCreateReferenceItemExceptionContextPopulator,CustomODataExceptionAwareErrorCallback,ExceptionContextPopulator,FilterByClassificationAttributeNotSupportedExceptionContextPopulator,FilterByVirtualAttributeNotSupportedExceptionContextPopulator,InstanceCreationOfAbstractTypeExceptionContextPopulator,IntegrationAttributeExceptionContextPopulator,IntegrationKeyNestedFilteringNotSupportedExceptionPopulator,InvalidAttributeValueExceptionContextPopulator,ItemCreationExceptionContextPopulator,ItemNotFoundExceptionContextPopulator,LocaleNotSupportedExceptionContextPopulator,MissingKeyReferencedAttributeValueExceptionContextPopulator,MissingRequiredAttributeValueExceptionContextPopulator,MissingRequiredKeyAttributeValueExceptionContextPopulator,MissingRequiredMapKeyValueExceptionContextPopulator,ModelRemovalExceptionContextPopulator,NonUniqueItemFoundExceptionContextPopulator,ODataExceptionContextPopulator,ODataRuntimeApplicationExceptionContextPopulator,OrderByIntegrationKeyNotSupportedExceptionContextPopulator,OrderByNestedAttributeNotSupportedExceptionContextPopulator,OrderByVirtualAttributeNotSupportedExceptionContextPopulator,PathPayloadMismatchExceptionPopulator,PersistenceFailedExceptionContextPopulator,PersistenceHookExceptionContextPopulator,PersistenceRuntimeApplicationExceptionContextPopulator,TypeAccessPermissionExceptionErrorPopulator,TypeAttributeDescriptorNotFoundExceptionContextPopulator,UnmodifiableAttributeExceptionContextPopulator,UriNotMatchingExceptionContextPopulator,VirtualAttributeConfigurationExceptionContextPopulator,VirtualAttributeExecutionExceptionContextPopulator
public interface ErrorContextPopulator
A provider of the
ODataErrorContext values for a specific type of exception.-
Method Summary
Modifier and TypeMethodDescriptionSpecifies what exception class thisErrorContextPopulatorcan provide values for.voidpopulate(@NotNull org.apache.olingo.odata2.api.processor.ODataErrorContext context) Populates context with values specific for the exception in the context, i.e.
-
Method Details
-
populate
void populate(@NotNull @NotNull org.apache.olingo.odata2.api.processor.ODataErrorContext context) Populates context with values specific for the exception in the context, i.e.ODataErrorContext.getException(). At a minimum, the implementations should set HTTP status code, error code and message, etc in theODataErrorContextdepending on the exception.- Parameters:
context- a context to update with the exception specific values.
-
getExceptionClass
Specifies what exception class thisErrorContextPopulatorcan provide values for.- Returns:
- the exception class
-