apidocs / com.srv4pos.server.api.infrastructure.exceptions.enums / InconsistentDataErrorType

InconsistentDataErrorType

enum class InconsistentDataErrorType

Enum describes error codes corresponding to com.srv4pos.server.api.exceptions.InconsistentDataJsonException.

Enum Values

SV_MISMATCH_IN_APP_DESC_AND_CU

Occurs when references to software vendor in application description and control unit doesn't match.

VALID_FROM_AND_VALID_TO_INCONSISTENCY

Occurs when some inconsistency was detected during 'ValidFrom' or 'ValidTo' validation.

ACTIVATION_CODE_WRONG_LENGTH

Occurs during activation process when activation code is tested.

ACTIVATION_CODE_ALREADY_EXISTS

Occurs during activation process when passed activation has its signature already.

ACTIVATION_STATUS_IS_NOT_MODIFIABLE_BY_PUT

Occurs in case of attempting to modify activation status by 'PUT' http method.

QUERY_PARAM_CANT_BE_NEGATIVE

Occurs if passed query parameter is negative, but positive of zero value is expected.

BODY_CANT_BE_EMPTY

SELLER_HAS_NOT_REGISTRATION

Occurs when passed by query param cash register name doesn't belong to the passed seller.

SELLER_SHOULD_BE_PROVIDED_FOR_CR

Occurs when cash register name passed as query param without specified seller.

SERVER_IS_OVERLOADED

Occurs when retrieving data bulk is too large. It signals to specify maxResults param to not greater that some limit. See com.srv4pos.server.api.kdfacet.KdFacetService.list for example.

IDENTIFIER_LENGTH_VIOLATION

Occurs when passed identifier (for instance, seller identifier) doesn't fit into length requirements.

SERVER_CANT_BE_REMOVED

Occurs in case of attempting to remove current working server.

URL_AND_BODY_IDENTIFIERS_MISMATCH

Occurs when identifier in URL and body is not the same. Commonly, it is used to forbid changing identifier by PUT.

LOCAL_AND_SERVER_VERSIONS_INCONSISTENCY

Occurs when passed version is more then server's one.

WORKING_WITH_CU_IS_NOT_SUPPORTED_BY_APP

Occurs when application without ability to work with control units attempts to send a kd.

PRODUCTION_NUMBER_AND_CONNECTION_MISMATCH

Occurs during connection to activation process when connection production number is not equal with installation.

PRODUCTION_NUMBER_AND_DEVICE_ID_MISMATCH

Occurs during com.srv4pos.server.api.activation.ActivationService.create. Indicates that passed production number doesn't belong to device.

ACTIVATION_PRODUCTION_NUMBER_SHOULD_BE_NULL

Occurs if com.srv4pos.server.api.activation.InstallationInfo for ActivationAdvancedInfo.registrationAdvancedInfo.registrationInfo.country and ...corporateId exists and ActivationAdvancedInfo.registrationAdvancedInfo.sellerInfo is present.

ACTIVATION_PRODUCTION_NUMBER_SHOULD_BE_NULL_OR_EQUAL

Occurs if Seller for ActivationAdvancedInfo.registrationAdvancedInfo.registrationInfo.country and ...corporateId exists and ActivationAdvancedInfo.registrationAdvancedInfo.sellerInfo is present.

ACTIVATION_APPLICATION_PACKAGE_MUST_BE_NULL_OR_EQUAL

Occurs during com.srv4pos.server.api.activation.ActivationService.create, when com.srv4pos.server.api.activation.ActivationCreationInfo.productionNumber is not null and applicationPackage of Installation (which is found by productionNumber) is not equal

REGISTRATION_EXISTS_FOR_SELLER_AND_INSTALLATION

Occurs during com.srv4pos.server.api.activation.ActivationService.create. Indicates that registration already exists for the same seller and installation.

ACTIVATION_MUST_HAVE_INSTALLATION_OR_ACTIVATION_CODE

Occurs during com.srv4pos.server.api.activation.ActivationService.create, when we cannot find a installation by a seller and a registration (registration can be found by com.srv4pos.server.api.activation.ActivationCreationInfo.cashRegisterName or com.srv4pos.server.api.activation.ActivationCreationInfo.productionNumber and com.srv4pos.server.api.activation.ActivationCreationInfo.connectionCode is empty.

SALES_DATA_MISMATCH

Occurs during put sale. If sale with this identifier exists already and sent data wasn't same as stored.

CIRCULAR_REFERENCE_DETECTED

Occurs if circular dependency was detected during setting some entity dependency.

CAN_NOT_CHANGE_DATE_IN_STATUS_WORKING

Occurs can't change the date when the Activation status: WORKING

Functions

message

abstract fun message(): String

Returns default human-readable message describing failure if any.