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

com.sap.cloud.yaas.servicesdk.auditbase.event.AuditEventInvalidException Maven / Gradle / Ivy

The newest version!
/*
 * © 2017 SAP SE or an SAP affiliate company.
 * All rights reserved.
 * Please see http://www.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and
 * notices.
 */
package com.sap.cloud.yaas.servicesdk.auditbase.event;

import com.sap.cloud.yaas.servicesdk.auditbase.validation.ValidationViolation; //NOPMD

import java.util.Collection;


/**
 * An exception saying that the audit event has invalid values or is incomplete.
 */
public class AuditEventInvalidException extends RuntimeException
{
	private static final long serialVersionUID = -6460844798258711583L;

	private final Collection validationViolations;

	/**
	 * Creates new {@link AuditEventInvalidException}.
	 *
	 * @param validationViolations the validation violations of the audit event
	 */
	public AuditEventInvalidException(final Collection validationViolations)
	{
		super(validationViolations.toString());
		this.validationViolations = validationViolations;
	}

	/**
	 * Returns the information about all the validation violations for this event.
	 *
	 * @return the validation violations
	 */
	public Collection getValidationViolations()
	{
		return validationViolations;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy