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 2006-2008 Sun Microsystems, Inc. 015 * Portions Copyright 2014 ForgeRock AS. 016 */ 017package org.opends.server.tools; 018import org.forgerock.i18n.LocalizableMessage; 019 020import org.opends.server.types.OpenDsException; 021 022 023 024/** 025 * This class defines an exception that may be thrown during the course of 026 * creating an SSL connection. 027 */ 028public class SSLConnectionException 029 extends OpenDsException { 030 031 032 033 /** 034 * The serial version identifier required to satisfy the compiler because this 035 * class extends <CODE>java.lang.Exception</CODE>, which implements the 036 * <CODE>java.io.Serializable</CODE> interface. This value was generated 037 * using the <CODE>serialver</CODE> command-line utility included with the 038 * Java SDK. 039 */ 040 private static final long serialVersionUID = 3135563348838654570L; 041 042 043 044 /** 045 * Creates a new exception with the provided message. 046 * 047 * @param message The message to use for this exception. 048 */ 049 public SSLConnectionException(LocalizableMessage message) 050 { 051 super(message); 052 053 } 054 055 056 057 /** 058 * Creates a new exception with the provided message and 059 * underlying cause. 060 * 061 * @param message The message to use for this exception. 062 * @param cause The underlying cause that triggered this 063 * exception. 064 */ 065 public SSLConnectionException(LocalizableMessage message, Throwable cause) 066 { 067 super(message, cause); 068 069 070 } 071 072 073} 074