/************************************************************************* * * * CESeCore: CE Security Core * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package org.cesecore.certificates.ca; import org.cesecore.CesecoreException; import org.cesecore.ErrorCode; /** * An exception thrown when someone tries to change or create a CA that doesn't already exits * * @version $Id: CAExistsException.java 26048 2017-06-20 09:26:30Z anatom $ */ public class CAExistsException extends CesecoreException { private static final long serialVersionUID = 1212559890080635864L; /** * Creates a new instance of CAExistsException without detail message. */ public CAExistsException() { super(); } /** * Constructs an instance of CAExistsException with the specified detail message. * @param msg the detail message. */ public CAExistsException(String msg) { super(ErrorCode.CA_ALREADY_EXISTS, msg); } public CAExistsException(String message, Throwable cause) { super(message, cause); } }