public enum UnprocessableEntityErrorType extends Enum<UnprocessableEntityErrorType>
UnprocessableEntityJsonException
.Enum Constant and Description |
---|
ACTIVATION_IS_ACTIVE_ALREADY |
ACTIVATION_IS_CLOSED_ALREADY |
ACTIVATION_IS_WORKING_ALREADY |
APP_DESC_HAS_REFERENCED_DATA
Occurs on attempt to remove application description which is referenced in another entities.
|
APPLICATION_PACKAGES_MISMATCH
|
AUTO_ACTIVATE_IS_NOT_POSSIBLE_ON_NEW_CU
|
COMPANY_NAME_MUST_BE_SET_IF_NO_SELLER
Occurs if both passed seller wasn't found and company name wasn't set.
|
CU_IS_MISSING_FOR_ACTIVATION
Indicates that control unit should be set if application is working with control unit
(i.e.
|
CU_IS_USED_IN_ACTIVATIONS
Occurs on attempt to delete the control unit which belongs to at least one activation.
|
CU_LOCATION_MUST_BE_SET
Occurs on attempt to set control unit without
com.srv4pos.server.api.activation.ActivationInfo#getControlUnitGeolocation() info specified. |
DAY_IS_CLOSED
Occurs when current day is closed.
|
DAY_IS_NOT_CLOSED
Occurs when current day isn't closed.
|
DEVICE_LOCATION_MUST_BE_SET
Indicates if
com.srv4pos.server.api.activation.ActivationInfo#getControlUnitLocation() set into DEVICE ,
but com.srv4pos.server.api.activation.ActivationInfo#getControlUnitGeolocation() is not provided. |
PRODUCTION_NUMBER_AND_DEVICE_ID_MISMATCH
|
PRODUCTION_NUMBER_IS_OUT_OF_DATE
Indicates that passed production number is out of date with device since another instance of application was installed already.
|
PROHIBITED_ORDER_STATUS_CHANGE
Occurs on attempt to change status of order which breaks conceived logic.
|
RECEIPT_IS_NOT_PRINTED
Occurs when current receipt is not printed yet.
|
RECEIPT_IS_PRINTED_ALREADY
Occurs when current receipt is printed already.
|
REPORT_IS_NOT_PRINTED
Occurs when report is not printed yet.
|
REPORT_IS_PRINTED_ALREADY
Occurs when report is printed already.
|
SOFTWARE_VENDOR_HAS_REFERENCED_DATA
Occurs on attempt to remove software vendor which is referenced in another entities.
|
SOFTWARE_VENDOR_IS_MISSING
Occurs on attempt to create/edit user with
UserRole.ROLE_SOFTWARE_VENDOR_ADMIN . |
TREASURER_IS_JOINED_TO_USER_ALREADY
Occurs on attempt to join treasurer which is joined already.
|
TREASURER_IS_NOT_JOINED_TO_USER
Occurs on disjoin treasurer.
|
USER_HAS_TREASURER_WITH_SAME_SELLER_ID_ALREADY
Occurs on attempt to join treasurer, but user has treasurer with same seller id already.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
message()
Returns default human-readable message describing failure if any.
|
static UnprocessableEntityErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnprocessableEntityErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnprocessableEntityErrorType TREASURER_IS_JOINED_TO_USER_ALREADY
public static final UnprocessableEntityErrorType USER_HAS_TREASURER_WITH_SAME_SELLER_ID_ALREADY
public static final UnprocessableEntityErrorType TREASURER_IS_NOT_JOINED_TO_USER
public static final UnprocessableEntityErrorType COMPANY_NAME_MUST_BE_SET_IF_NO_SELLER
public static final UnprocessableEntityErrorType CU_LOCATION_MUST_BE_SET
com.srv4pos.server.api.activation.ActivationInfo#getControlUnitGeolocation()
info specified.public static final UnprocessableEntityErrorType PRODUCTION_NUMBER_IS_OUT_OF_DATE
public static final UnprocessableEntityErrorType CU_IS_MISSING_FOR_ACTIVATION
com.srv4pos.server.api.applicationDescription.ApplicationDescriptionInfo#isControlUnitRequired()
) set as true
.public static final UnprocessableEntityErrorType DEVICE_LOCATION_MUST_BE_SET
com.srv4pos.server.api.activation.ActivationInfo#getControlUnitLocation()
set into DEVICE
,
but com.srv4pos.server.api.activation.ActivationInfo#getControlUnitGeolocation()
is not provided.public static final UnprocessableEntityErrorType AUTO_ACTIVATE_IS_NOT_POSSIBLE_ON_NEW_CU
ActivationService.orderActivation(com.srv4pos.server.api.activation.ActivationOrderInfo)
.
Indicates the attempt to enable auto-activation upon not yet registered control unit.public static final UnprocessableEntityErrorType PRODUCTION_NUMBER_AND_DEVICE_ID_MISMATCH
ActivationService.orderActivation(com.srv4pos.server.api.activation.ActivationOrderInfo)
.
Indicates that passed production number doesn't belong to device.
Reinstall of application is suggested.
public static final UnprocessableEntityErrorType APPLICATION_PACKAGES_MISMATCH
ActivationService.orderActivation(com.srv4pos.server.api.activation.ActivationOrderInfo)
.
Indicates that passed application package in InstallationOrderInfo
and
another one identified by production number are not the same.
Reinstall of application is suggested.
public static final UnprocessableEntityErrorType APP_DESC_HAS_REFERENCED_DATA
public static final UnprocessableEntityErrorType SOFTWARE_VENDOR_HAS_REFERENCED_DATA
public static final UnprocessableEntityErrorType SOFTWARE_VENDOR_IS_MISSING
UserRole.ROLE_SOFTWARE_VENDOR_ADMIN
.
In this case, software vendor should be specified.public static final UnprocessableEntityErrorType PROHIBITED_ORDER_STATUS_CHANGE
public static final UnprocessableEntityErrorType CU_IS_USED_IN_ACTIVATIONS
public static final UnprocessableEntityErrorType DAY_IS_CLOSED
public static final UnprocessableEntityErrorType DAY_IS_NOT_CLOSED
public static final UnprocessableEntityErrorType RECEIPT_IS_PRINTED_ALREADY
public static final UnprocessableEntityErrorType RECEIPT_IS_NOT_PRINTED
public static final UnprocessableEntityErrorType REPORT_IS_PRINTED_ALREADY
public static final UnprocessableEntityErrorType REPORT_IS_NOT_PRINTED
public static final UnprocessableEntityErrorType ACTIVATION_IS_CLOSED_ALREADY
public static final UnprocessableEntityErrorType ACTIVATION_IS_ACTIVE_ALREADY
public static final UnprocessableEntityErrorType ACTIVATION_IS_WORKING_ALREADY
public static UnprocessableEntityErrorType[] values()
for (UnprocessableEntityErrorType c : UnprocessableEntityErrorType.values()) System.out.println(c);
public static UnprocessableEntityErrorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract String message()
String
.UnsupportedOperationException
- if there is no message provided.Copyright © 2016. All rights reserved.