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

it.cnr.contab.pdg00.comp.DiscrepanzeAggregatoException Maven / Gradle / Ivy

/*
 * Copyright (C) 2019  Consiglio Nazionale delle Ricerche
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Affero General Public License as
 *     published by the Free Software Foundation, either version 3 of the
 *     License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Affero General Public License for more details.
 *
 *     You should have received a copy of the GNU Affero General Public License
 *     along with this program.  If not, see .
 */

package it.cnr.contab.pdg00.comp;

/**
 * Eccezione utilizzata per notificare la duplicazione del codice fiscale e
 * rendere possibile il riutilizzo dell'oggetto anagrafico che l'ha generato.
 * Quest'ultimo viene al momento gestito per poter accorpare i terzi del nuovo
 * oggetto al vecchio.
 */

public class DiscrepanzeAggregatoException extends it.cnr.jada.comp.ApplicationException {

	private java.util.List lista;

/**
 * Costruttore standard.
 */

public DiscrepanzeAggregatoException() {
	super();
}
/**
 * Costruttore che notifica un messaggio libero ma non associa all'eccezione
 * l'oggetto anagrafico.
 *
 * @param s Messaggio da notificare
 */

public DiscrepanzeAggregatoException(String s) {
	super(s);
}
/**
 * Il costruttore genera l'eccezione associando un oggetto AnagraficoBulk.
 *
 * @param anag oggetto che ha generato l'eccezione.
 */

public DiscrepanzeAggregatoException(java.util.List listaAgr) {
	super("Sono presenti importi complessivi non compatibili con i dati impostati dall'ente. Visualizzarli?");
	lista = listaAgr;
}
	/**
	 * Restituisce l'oggetto anagrafico associato all'eccezione. Se non
	 * è stato associato nessun oggetto viene restituito un nuovo AnagraficoBulk.
	 *
	 * @return it.cnr.contab.anagraf00.core.bulk.AnagraficoBulk
	 */

	public java.util.List getLista() {
		return lista == null? (new java.util.Vector()): lista;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy