Interface ErrorObject
- All Known Subinterfaces:
AnonymousIdAlreadyInUseError
,AssociateMissingPermissionError
,AttributeDefinitionAlreadyExistsError
,AttributeDefinitionTypeConflictError
,AttributeNameDoesNotExistError
,BadGatewayError
,ConcurrentModificationError
,ContentTooLargeError
,CountryNotConfiguredInStoreError
,DiscountCodeNonApplicableError
,DuplicateAttributeValueError
,DuplicateAttributeValuesError
,DuplicateEnumValuesError
,DuplicateFieldError
,DuplicateFieldWithConflictingResourceError
,DuplicatePriceKeyError
,DuplicatePriceScopeError
,DuplicateStandalonePriceScopeError
,DuplicateVariantValuesError
,EditPreviewFailedError
,EnumKeyAlreadyExistsError
,EnumKeyDoesNotExistError
,EnumValueIsUsedError
,EnumValuesMustMatchError
,ExtensionBadResponseError
,ExtensionNoResponseError
,ExtensionPredicateEvaluationFailedError
,ExtensionUpdateActionsFailedError
,ExternalOAuthFailedError
,FeatureRemovedError
,GeneralError
,InsufficientScopeError
,InternalConstraintViolatedError
,InvalidCredentialsError
,InvalidCurrentPasswordError
,InvalidFieldError
,InvalidInputError
,InvalidItemShippingDetailsError
,InvalidJsonInputError
,InvalidOperationError
,InvalidSubjectError
,InvalidTokenError
,LanguageUsedInStoresError
,LockedFieldError
,MatchingPriceNotFoundError
,MaxCartDiscountsReachedError
,MaxResourceLimitExceededError
,MaxStoreReferencesReachedError
,MissingRoleOnChannelError
,MissingTaxRateForCountryError
,MoneyOverflowError
,NoMatchingProductDiscountFoundError
,ObjectNotFoundError
,OutOfStockError
,OverCapacityError
,OverlappingStandalonePriceValidityError
,PendingOperationError
,PriceChangedError
,ProductAssignmentMissingError
,ProductPresentWithDifferentVariantSelectionError
,ProjectNotConfiguredForLanguagesError
,QueryComplexityLimitExceededError
,QueryTimedOutError
,ReferencedResourceNotFoundError
,ReferenceExistsError
,RequiredFieldError
,ResourceNotFoundError
,ResourceSizeLimitExceededError
,SearchDeactivatedError
,SearchExecutionFailureError
,SearchFacetPathNotFoundError
,SearchIndexingInProgressError
,SearchNotReadyError
,SemanticErrorError
,ShippingMethodDoesNotMatchCartError
,StoreCartDiscountsLimitReachedError
,SyntaxErrorError
public interface ErrorObject
Represents a single error. Multiple errors may be included in an ErrorResponse.
Example to create a subtype instance using the builder pattern
ErrorObject errorObject = ErrorObject.anonymousIdAlreadyInUseBuilder()
message("{message}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for anonymousIdAlreadyInUse subtypebuilder for associateMissingPermission subtypebuilder for attributeDefinitionAlreadyExists subtypebuilder for attributeDefinitionTypeConflict subtypebuilder for attributeNameDoesNotExist subtypestatic BadGatewayErrorBuilder
builder for badGateway subtypebuilder for concurrentModification subtypestatic ContentTooLargeErrorBuilder
builder for contentTooLarge subtypebuilder for countryNotConfiguredInStore subtypestatic ErrorObject
deepCopy
(ErrorObject template) factory method to create a deep copy of ErrorObjectbuilder for discountCodeNonApplicable subtypebuilder for duplicateAttributeValue subtypebuilder for duplicateAttributeValues subtypebuilder for duplicateEnumValues subtypestatic DuplicateFieldErrorBuilder
builder for duplicateField subtypebuilder for duplicateFieldWithConflictingResource subtypebuilder for duplicatePriceKey subtypebuilder for duplicatePriceScope subtypebuilder for duplicateStandalonePriceScope subtypebuilder for duplicateVariantValues subtypebuilder for editPreviewFailed subtypebuilder for enumKeyAlreadyExists subtypebuilder for enumKeyDoesNotExist subtypestatic EnumValueIsUsedErrorBuilder
builder for enumValueIsUsed subtypebuilder for enumValuesMustMatch subtypebuilder for extensionBadResponse subtypebuilder for extensionNoResponse subtypebuilder for extensionPredicateEvaluationFailed subtypebuilder for extensionUpdateActionsFailed subtypebuilder for externalOAuthFailed subtypestatic FeatureRemovedErrorBuilder
builder for featureRemoved subtypestatic GeneralErrorBuilder
builder for general subtype@NotNull String
getCode()
Error identifier.@NotNull String
Plain text description of the cause of the error.builder for insufficientScope subtypebuilder for internalConstraintViolated subtypebuilder for invalidCredentials subtypebuilder for invalidCurrentPassword subtypestatic InvalidFieldErrorBuilder
builder for invalidField subtypestatic InvalidInputErrorBuilder
builder for invalidInput subtypebuilder for invalidItemShippingDetails subtypestatic InvalidJsonInputErrorBuilder
builder for invalidJsonInput subtypestatic InvalidOperationErrorBuilder
builder for invalidOperation subtypestatic InvalidSubjectErrorBuilder
builder for invalidSubject subtypestatic InvalidTokenErrorBuilder
builder for invalidToken subtypebuilder for languageUsedInStores subtypestatic LockedFieldErrorBuilder
builder for lockedField subtypebuilder for matchingPriceNotFound subtypebuilder for maxCartDiscountsReached subtypebuilder for maxResourceLimitExceeded subtypebuilder for maxStoreReferencesReached subtypebuilder for missingRoleOnChannel subtypebuilder for missingTaxRateForCountry subtypestatic MoneyOverflowErrorBuilder
builder for moneyOverflow subtypebuilder for noMatchingProductDiscountFound subtypestatic ObjectNotFoundErrorBuilder
builder for objectNotFound subtypestatic OutOfStockErrorBuilder
builder for outOfStock subtypestatic OverCapacityErrorBuilder
builder for overCapacity subtypebuilder for overlappingStandalonePriceValidity subtypestatic PendingOperationErrorBuilder
builder for pendingOperation subtypestatic PriceChangedErrorBuilder
builder for priceChanged subtypebuilder for productAssignmentMissing subtypebuilder for productPresentWithDifferentVariantSelection subtypebuilder for projectNotConfiguredForLanguages subtypebuilder for queryComplexityLimitExceeded subtypestatic QueryTimedOutErrorBuilder
builder for queryTimedOut subtypebuilder for referencedResourceNotFound subtypestatic ReferenceExistsErrorBuilder
builder for referenceExists subtypestatic RequiredFieldErrorBuilder
builder for requiredField subtypestatic ResourceNotFoundErrorBuilder
builder for resourceNotFound subtypebuilder for resourceSizeLimitExceeded subtypebuilder for searchDeactivated subtypebuilder for searchExecutionFailure subtypebuilder for searchFacetPathNotFound subtypebuilder for searchIndexingInProgress subtypestatic SearchNotReadyErrorBuilder
builder for searchNotReady subtypestatic SemanticErrorErrorBuilder
builder for semanticError subtypevoid
setMessage
(String message) Plain text description of the cause of the error.void
Error-specific additional fields.builder for shippingMethodDoesNotMatchCart subtypebuilder for storeCartDiscountsLimitReached subtypestatic SyntaxErrorErrorBuilder
builder for syntaxError subtypestatic com.fasterxml.jackson.core.type.TypeReference<ErrorObject>
gives a TypeReference for usage with Jackson DataBindvalues()
Error-specific additional fields.default <T> T
withErrorObject
(Function<ErrorObject, T> helper) accessor map function
-
Method Details
-
getCode
Error identifier.
- Returns:
- code
-
getMessage
Plain text description of the cause of the error.
- Returns:
- message
-
values
Error-specific additional fields.
- Returns:
- map of the pattern property values
-
setMessage
Plain text description of the cause of the error.
- Parameters:
message
- value to be set
-
setValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value
-
deepCopy
factory method to create a deep copy of ErrorObject- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
anonymousIdAlreadyInUseBuilder
builder for anonymousIdAlreadyInUse subtype- Returns:
- builder
-
associateMissingPermissionBuilder
builder for associateMissingPermission subtype- Returns:
- builder
-
attributeDefinitionAlreadyExistsBuilder
builder for attributeDefinitionAlreadyExists subtype- Returns:
- builder
-
attributeDefinitionTypeConflictBuilder
builder for attributeDefinitionTypeConflict subtype- Returns:
- builder
-
attributeNameDoesNotExistBuilder
builder for attributeNameDoesNotExist subtype- Returns:
- builder
-
badGatewayBuilder
builder for badGateway subtype- Returns:
- builder
-
concurrentModificationBuilder
builder for concurrentModification subtype- Returns:
- builder
-
contentTooLargeBuilder
builder for contentTooLarge subtype- Returns:
- builder
-
countryNotConfiguredInStoreBuilder
builder for countryNotConfiguredInStore subtype- Returns:
- builder
-
discountCodeNonApplicableBuilder
builder for discountCodeNonApplicable subtype- Returns:
- builder
-
duplicateAttributeValueBuilder
builder for duplicateAttributeValue subtype- Returns:
- builder
-
duplicateAttributeValuesBuilder
builder for duplicateAttributeValues subtype- Returns:
- builder
-
duplicateEnumValuesBuilder
builder for duplicateEnumValues subtype- Returns:
- builder
-
duplicateFieldBuilder
builder for duplicateField subtype- Returns:
- builder
-
duplicateFieldWithConflictingResourceBuilder
static DuplicateFieldWithConflictingResourceErrorBuilder duplicateFieldWithConflictingResourceBuilder()builder for duplicateFieldWithConflictingResource subtype- Returns:
- builder
-
duplicatePriceKeyBuilder
builder for duplicatePriceKey subtype- Returns:
- builder
-
duplicatePriceScopeBuilder
builder for duplicatePriceScope subtype- Returns:
- builder
-
duplicateStandalonePriceScopeBuilder
builder for duplicateStandalonePriceScope subtype- Returns:
- builder
-
duplicateVariantValuesBuilder
builder for duplicateVariantValues subtype- Returns:
- builder
-
editPreviewFailedBuilder
builder for editPreviewFailed subtype- Returns:
- builder
-
enumKeyAlreadyExistsBuilder
builder for enumKeyAlreadyExists subtype- Returns:
- builder
-
enumKeyDoesNotExistBuilder
builder for enumKeyDoesNotExist subtype- Returns:
- builder
-
enumValueIsUsedBuilder
builder for enumValueIsUsed subtype- Returns:
- builder
-
enumValuesMustMatchBuilder
builder for enumValuesMustMatch subtype- Returns:
- builder
-
extensionBadResponseBuilder
builder for extensionBadResponse subtype- Returns:
- builder
-
extensionNoResponseBuilder
builder for extensionNoResponse subtype- Returns:
- builder
-
extensionPredicateEvaluationFailedBuilder
builder for extensionPredicateEvaluationFailed subtype- Returns:
- builder
-
extensionUpdateActionsFailedBuilder
builder for extensionUpdateActionsFailed subtype- Returns:
- builder
-
externalOAuthFailedBuilder
builder for externalOAuthFailed subtype- Returns:
- builder
-
featureRemovedBuilder
builder for featureRemoved subtype- Returns:
- builder
-
generalBuilder
builder for general subtype- Returns:
- builder
-
insufficientScopeBuilder
builder for insufficientScope subtype- Returns:
- builder
-
internalConstraintViolatedBuilder
builder for internalConstraintViolated subtype- Returns:
- builder
-
invalidCredentialsBuilder
builder for invalidCredentials subtype- Returns:
- builder
-
invalidCurrentPasswordBuilder
builder for invalidCurrentPassword subtype- Returns:
- builder
-
invalidFieldBuilder
builder for invalidField subtype- Returns:
- builder
-
invalidInputBuilder
builder for invalidInput subtype- Returns:
- builder
-
invalidItemShippingDetailsBuilder
builder for invalidItemShippingDetails subtype- Returns:
- builder
-
invalidJsonInputBuilder
builder for invalidJsonInput subtype- Returns:
- builder
-
invalidOperationBuilder
builder for invalidOperation subtype- Returns:
- builder
-
invalidSubjectBuilder
builder for invalidSubject subtype- Returns:
- builder
-
invalidTokenBuilder
builder for invalidToken subtype- Returns:
- builder
-
languageUsedInStoresBuilder
builder for languageUsedInStores subtype- Returns:
- builder
-
lockedFieldBuilder
builder for lockedField subtype- Returns:
- builder
-
matchingPriceNotFoundBuilder
builder for matchingPriceNotFound subtype- Returns:
- builder
-
maxCartDiscountsReachedBuilder
builder for maxCartDiscountsReached subtype- Returns:
- builder
-
maxResourceLimitExceededBuilder
builder for maxResourceLimitExceeded subtype- Returns:
- builder
-
maxStoreReferencesReachedBuilder
builder for maxStoreReferencesReached subtype- Returns:
- builder
-
missingRoleOnChannelBuilder
builder for missingRoleOnChannel subtype- Returns:
- builder
-
missingTaxRateForCountryBuilder
builder for missingTaxRateForCountry subtype- Returns:
- builder
-
moneyOverflowBuilder
builder for moneyOverflow subtype- Returns:
- builder
-
noMatchingProductDiscountFoundBuilder
builder for noMatchingProductDiscountFound subtype- Returns:
- builder
-
objectNotFoundBuilder
builder for objectNotFound subtype- Returns:
- builder
-
outOfStockBuilder
builder for outOfStock subtype- Returns:
- builder
-
overCapacityBuilder
builder for overCapacity subtype- Returns:
- builder
-
overlappingStandalonePriceValidityBuilder
builder for overlappingStandalonePriceValidity subtype- Returns:
- builder
-
pendingOperationBuilder
builder for pendingOperation subtype- Returns:
- builder
-
priceChangedBuilder
builder for priceChanged subtype- Returns:
- builder
-
productAssignmentMissingBuilder
builder for productAssignmentMissing subtype- Returns:
- builder
-
productPresentWithDifferentVariantSelectionBuilder
static ProductPresentWithDifferentVariantSelectionErrorBuilder productPresentWithDifferentVariantSelectionBuilder()builder for productPresentWithDifferentVariantSelection subtype- Returns:
- builder
-
projectNotConfiguredForLanguagesBuilder
builder for projectNotConfiguredForLanguages subtype- Returns:
- builder
-
queryComplexityLimitExceededBuilder
builder for queryComplexityLimitExceeded subtype- Returns:
- builder
-
queryTimedOutBuilder
builder for queryTimedOut subtype- Returns:
- builder
-
referenceExistsBuilder
builder for referenceExists subtype- Returns:
- builder
-
referencedResourceNotFoundBuilder
builder for referencedResourceNotFound subtype- Returns:
- builder
-
requiredFieldBuilder
builder for requiredField subtype- Returns:
- builder
-
resourceNotFoundBuilder
builder for resourceNotFound subtype- Returns:
- builder
-
resourceSizeLimitExceededBuilder
builder for resourceSizeLimitExceeded subtype- Returns:
- builder
-
searchDeactivatedBuilder
builder for searchDeactivated subtype- Returns:
- builder
-
searchExecutionFailureBuilder
builder for searchExecutionFailure subtype- Returns:
- builder
-
searchFacetPathNotFoundBuilder
builder for searchFacetPathNotFound subtype- Returns:
- builder
-
searchIndexingInProgressBuilder
builder for searchIndexingInProgress subtype- Returns:
- builder
-
searchNotReadyBuilder
builder for searchNotReady subtype- Returns:
- builder
-
semanticErrorBuilder
builder for semanticError subtype- Returns:
- builder
-
shippingMethodDoesNotMatchCartBuilder
builder for shippingMethodDoesNotMatchCart subtype- Returns:
- builder
-
storeCartDiscountsLimitReachedBuilder
builder for storeCartDiscountsLimitReached subtype- Returns:
- builder
-
syntaxErrorBuilder
builder for syntaxError subtype- Returns:
- builder
-
withErrorObject
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-