All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.imunity.vaadin.endpoint.common.forms.RegCodeException Maven / Gradle / Ivy

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