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 Type
    Method
    Description
    Class<? extends Exception>
    Specifies what exception class this ErrorContextPopulator can provide values for.
    void
    populate(@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 the ODataErrorContext depending on the exception.
      Parameters:
      context - a context to update with the exception specific values.
    • getExceptionClass

      Class<? extends Exception> getExceptionClass()
      Specifies what exception class this ErrorContextPopulator can provide values for.
      Returns:
      the exception class