Package org.cyclos.model.access
Class TokenAlreadyInUseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cyclos.model.CyclosException
-
- org.cyclos.model.BusinessException
-
- org.cyclos.model.access.TokenAlreadyInUseException
-
- All Implemented Interfaces:
Serializable
public class TokenAlreadyInUseException extends BusinessException
Exception thrown when trying to initialize a NFC tag/device but there is an existing token in use in the system with the same value and type. A token is in use if its status is any of:TokenStatus.ACTIVE,TokenStatus.BLOCKED,TokenStatus.PENDING_ACTIVATION,- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenAlreadyInUseException()TokenAlreadyInUseException(TokenVO token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenVOgetToken()voidsetToken(TokenVO token)-
Methods inherited from class org.cyclos.model.CyclosException
getAttribute, getMessage, setAttribute, shouldGenerateLog
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-