001/** 002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 003 * 004 * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved 005 * 006 * The contents of this file are subject to the terms 007 * of the Common Development and Distribution License 008 * (the License). You may not use this file except in 009 * compliance with the License. 010 * 011 * You can obtain a copy of the License at 012 * https://opensso.dev.java.net/public/CDDLv1.0.html or 013 * opensso/legal/CDDLv1.0.txt 014 * See the License for the specific language governing 015 * permission and limitations under the License. 016 * 017 * When distributing Covered Code, include this CDDL 018 * Header Notice in each file and include the License file 019 * at opensso/legal/CDDLv1.0.txt. 020 * If applicable, add the following below the CDDL Header, 021 * with the fields enclosed by brackets [] replaced by 022 * your own identifying information: 023 * "Portions Copyrighted [year] [name of copyright owner]" 024 * 025 * $Id: AMEntryExistsException.java,v 1.4 2008/06/25 05:41:20 qcheng Exp $ 026 * 027 */ 028 029package com.iplanet.am.sdk; 030 031import com.iplanet.sso.SSOToken; 032import com.iplanet.ums.UMSException; 033 034/** 035 * This <code>AMEntryExistsException</code> is a specific typed exception used 036 * to indicate an error encountered because the entry already existing in the 037 * Directory. This class is a subclass of the <code>AMException</code> class. 038 * 039 * @see java.lang.Exception 040 * @see java.lang.Throwable 041 * @see AMException 042 * 043 * @deprecated As of Sun Java System Access Manager 7.1. 044 * @supported.all.api 045 */ 046public class AMEntryExistsException extends AMException { 047 048 /** 049 * Constructs a new <code>AMEntryExistsException</code> with detailed 050 * message. 051 * 052 * @param msg 053 * The detailed message 054 * @param errorCode 055 * Error code that matches the appropriate entry in 056 * <code>amProfile.properties</code>. 057 */ 058 public AMEntryExistsException(String msg, String errorCode) { 059 super(msg, errorCode); 060 } 061 062 /** 063 * Protected constructor for convenience. 064 * 065 * @param token 066 * Single Sign On Token. 067 * @param errorCode 068 * Error code that matches the appropriate entry in 069 * <code>amProfile.properties</code>. 070 */ 071 public AMEntryExistsException(SSOToken token, String errorCode) { 072 super(token, errorCode); 073 } 074 075 /** 076 * Protected constructor for convenience. 077 * 078 * @param msg 079 * The detailed message. 080 * @param errorCode 081 * Error code that matches the appropriate entry in 082 * <code>amProfile.properties</code>. 083 * @param ue 084 * <code>UMSException</code> root cause exception. 085 */ 086 public AMEntryExistsException( 087 String msg, String errorCode, UMSException ue) { 088 super(msg, errorCode, ue); 089 } 090 091 /** 092 * Protected constructor for convenience. 093 * 094 * @param token 095 * Single Sign On Token. 096 * @param errorCode 097 * Error code that matches the appropriate entry in 098 * <code>amProfile.properties</code>. 099 * @param ue 100 * <code>UMSException</code> root cause exception. 101 */ 102 public AMEntryExistsException(SSOToken token, String errorCode, 103 UMSException ue) { 104 super(token, errorCode, ue); 105 } 106 107 /** 108 * Constructs a new <code>AMException</code> with detailed message. 109 * 110 * @param msg 111 * The detailed message. 112 * @param errorCode 113 * Error code that matches the appropriate entry in 114 * <code>amProfile.properties</code>. 115 * @param args 116 * Array of arguments to be applied in the message. 117 */ 118 public AMEntryExistsException(String msg, String errorCode, Object args[]) { 119 super(msg, errorCode, args); 120 } 121 122 /** 123 * Constructs a new <code>AMException</code> with detailed message. 124 * 125 * @param msg 126 * The detailed message. 127 * @param errorCode 128 * Error code that matches the appropriate entry in 129 * <code>amProfile.properties</code>. 130 * @param args 131 * Array of arguments to be applied in the message. 132 * @param ue 133 * <code>UMSException</code> root cause exception. 134 */ 135 public AMEntryExistsException(String msg, String errorCode, Object args[], 136 UMSException ue) { 137 super(msg, errorCode, args, ue); 138 } 139 140}