001/*
002 * The contents of this file are subject to the terms of the Common Development and
003 * Distribution License (the License). You may not use this file except in compliance with the
004 * License.
005 *
006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
007 * specific language governing permission and limitations under the License.
008 *
009 * When distributing Covered Software, include this CDDL Header Notice in each file and include
010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
011 * Header, with the fields enclosed by brackets [] replaced by your own identifying
012 * information: "Portions Copyright [year] [name of copyright owner]".
013 *
014 * Copyright 2008-2010 Sun Microsystems, Inc.
015 * Portions Copyright 2014 ForgeRock AS.
016 */
017
018package org.opends.server.types;
019
020import org.forgerock.i18n.LocalizableMessage;
021
022/**
023 * This class defines an exception that is thrown in the case of
024 * problems with encryption key management, and is a wrapper for a
025 * variety of other cipher related exceptions.
026 */
027@org.opends.server.types.PublicAPI(
028     stability=org.opends.server.types.StabilityLevel.VOLATILE,
029     mayInstantiate=false,
030     mayExtend=false,
031     mayInvoke=true)
032public class CryptoManagerException extends OpenDsException {
033  /**
034   * The serial version identifier required to satisfy the compiler
035   * because this class extends <CODE>java.lang.Exception</CODE>,
036   * which implements the <CODE>java.io.Serializable</CODE>
037   * interface. This value was generated using the
038   * <CODE>serialver</CODE> command-line utility included with the
039   * Java SDK.
040   */
041  static final long serialVersionUID = -5890763923778143774L;
042
043  /**
044   * Creates an exception with the given message.
045   * @param message the message message.
046   */
047  public CryptoManagerException(LocalizableMessage message) {
048    super(message);
049   }
050
051  /**
052   * Creates an exception with the given message and underlying
053   * cause.
054   * @param message The message message.
055   * @param cause  The underlying cause.
056   */
057  public CryptoManagerException(LocalizableMessage message, Exception cause) {
058    super(message, cause);
059  }
060}