io.imunity.vaadin.endpoint.common.forms.RegCodeException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-vaadin-endpoint-common Show documentation
Show all versions of unity-server-vaadin-endpoint-common Show documentation
Common Vaadin endpoint components
The newest version!
/*
* Copyright (c) 2019 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin.endpoint.common.forms;
import static pl.edu.icm.unity.base.registration.RegistrationWrapUpConfig.TriggeringState;
/**
*
* @author P.Piernik
*
*/
public class RegCodeException extends Exception
{
public final ErrorCause cause;
public RegCodeException(ErrorCause cause)
{
this.cause = cause;
}
public enum ErrorCause
{
MISSING_CODE(TriggeringState.GENERAL_ERROR),
INVITATION_OF_OTHER_FORM(TriggeringState.GENERAL_ERROR),
UNRESOLVED_INVITATION(TriggeringState.INVITATION_MISSING),
EXPIRED_INVITATION(TriggeringState.INVITATION_EXPIRED),
MISCONFIGURED(TriggeringState.GENERAL_ERROR);
TriggeringState triggerState;
private ErrorCause(TriggeringState triggerState)
{
this.triggerState = triggerState;
}
public TriggeringState getTriggerState()
{
return triggerState;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy