/************************************************************************* * * * EJBCA Community: The OpenSource Certificate Authority * * * * 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.keybind; import org.cesecore.CesecoreException; import org.cesecore.ErrorCode; /** * An exception thrown when someone tries to create an InternalKeyBinding with an existing name. * * @version $Id: InternalKeyBindingNameInUseException.java 19902 2014-09-30 14:32:24Z anatom $ */ public class InternalKeyBindingNameInUseException extends CesecoreException { private static final long serialVersionUID = 1L; public static final ErrorCode INTERNAL_KEY_BINDING_NAME_IN_USE = ErrorCode.INTERNAL_KEY_BINDING_NAME_IN_USE; /** * Creates a new instance of InternalKeyBindingNameInUseException without detail message. */ public InternalKeyBindingNameInUseException() { super(INTERNAL_KEY_BINDING_NAME_IN_USE); } /** * Constructs an instance of InternalKeyBindingNameInUseException with the specified detail message. * @param msg the detail message. */ public InternalKeyBindingNameInUseException(String msg) { super(INTERNAL_KEY_BINDING_NAME_IN_USE, msg); } /** * Constructs an instance of InternalKeyBindingNameInUseException with the specified detail message. * @param exception the exception that caused this */ public InternalKeyBindingNameInUseException(Exception exception) { super(INTERNAL_KEY_BINDING_NAME_IN_USE, exception); } /** * Constructs an instance of InternalKeyBindingNameInUseException with the specified detail message. * @param msg the detail message. * @param exception the exception that caused this */ public InternalKeyBindingNameInUseException(String msg, Exception e) { super(INTERNAL_KEY_BINDING_NAME_IN_USE, msg, e); } }