public class BadgeConditionException extends DomainException
BadgeConditionException class is thrown when a BadgeCondition prevents the
badge from being used. This exception allows us to bind the BadgeEntity and the
BadgeCondition value to the exception for accessibility.ADMIN_BADGE_REQUIRED, BADGE_CONDITION_NOT_MET, BADGE_NEED_RE_LOGIN, BADGE_PICKER_REQUIRED, BADGE_QR_CODE_INVALID, BADGE_RECOVERY_CODE_NOT_EXIST, BADGE_REMOVED, CURRENT_SERVER_COULD_NOT_BE_DELETED_UNTIL_IT_IS_THE_LAST_ONE, DEVICE_PROVISION_REQUIRED, EXPIRED_REFRESH_TOKEN, GENERAL_NETWORK_ERROR, INBOX_ENTITY_NOT_FOUND, INBOX_NOT_SUPPORTED, INVALID_BADGE_INVITATION_CODE, INVALID_CERTIFICATE, INVALID_QR_CODE, NEED_TO_CONFIRM_SERVER, NEED_TO_RESOLVE_BADGE_CONDITION, NEED_TO_RESOLVE_BADGE_CONDITION_FOR_USHER_DATA_ENTITY, NEED_TO_SWITCH_SERVER, NETWORK_CONNECTION_TIMEOUT, NETWORK_OFFLINE_OR_VPN_REQUIRED, NO_BADGE_CONFIGURED_FOR_SCANNED_DATA, NO_BADGE_EXISTED, NO_ELEMENT, NO_SERVER_CONFIGURATION_SAVED, ORG_NOT_EXIST, PRE_CONFIGURED_SERVER_COULD_NOT_BE_DELETED, RECOVER_BADGE, REQUIRE_BADGE_LOGIN, REQUIRE_CONFIRMATION_FOR_LEGACY_COMPUTER_LOGIN, REQUIRE_PASSWORD_UPDATE_FOR_LEGACY_COMPUTER_LOGIN, SERVER_CONFIGURATION_DISABLED, SERVER_CONFIGURED, SERVER_NOT_ALLOWED_TO_BE_DELETED_ONCE_CONFIGURED, SERVER_NOT_CONFIGURED, SERVER_SWITCH_DISABLED, UNEXPECTED_ERROR, UPLOAD_GENERIC_PERMISSION_REQUIRED| Constructor and Description |
|---|
BadgeConditionException(int type,
BadgeEntity badgeEntity)
Construct for a
BadgeConditionException with the type and badgeEntity set. |
| Modifier and Type | Method and Description |
|---|---|
BadgeEntity |
getBadgeEntity()
Returns a
BadgeEntity object that wraps the core attributes pertaining to the badge. |
int |
getType()
Returns an int of the
BadgeCondition object type. |
getCodepublic BadgeConditionException(int type,
BadgeEntity badgeEntity)
BadgeConditionException with the type and badgeEntity set.type - the value of the BadgeCondition objectbadgeEntity - See BadgeEntitypublic BadgeEntity getBadgeEntity()
BadgeEntity object that wraps the core attributes pertaining to the badge.BadgeEntity object that wraps the core attributes pertaining to the badge.public int getType()
BadgeCondition object type.BadgeCondition object type.