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: IdRepoFatalException.java,v 1.3 2008/06/25 05:43:28 qcheng Exp $ 026 * 027 */ 028 029package com.sun.identity.idm; 030 031/** 032 * The exception class whose instance is thrown if there is any error during the 033 * operation of objects of the <code>com.sun.identity.sms</code> package. This 034 * class maps the exception that occurred at a lower level to a high level 035 * error. Using the exception status code <code>getExceptionCode()</code> the 036 * errors are categorized as a <code>ABORT</code>, <code>RETRY</code>, 037 * <code>CONFIG_PROBLEM</code> or <code>LDAP_OP_FAILED</code> (typically a 038 * bug). 039 * 040 * @supported.all.api 041 */ 042public class IdRepoFatalException extends IdRepoException { 043 044 /** 045 * @param msg 046 * The message provided by the object which is throwing the 047 * exception 048 */ 049 public IdRepoFatalException(String msg) { 050 super(msg); 051 052 } 053 054 public IdRepoFatalException(String msg, String errorCode) { 055 super(msg, errorCode); 056 } 057 058 /** 059 * This constructor is used to pass the localized error message At this 060 * level, the locale of the caller is not known and it is not possible to 061 * throw localized error message at this level. Instead this constructor 062 * provides Resource Bundle name and error code for correctly locating the 063 * error message. The default <code>getMessage()</code> will always return 064 * English messages only. This is in consistent with current JRE. 065 * 066 * @param rbName 067 * Resource bundle Name to be used for getting localized error 068 * message. 069 * @param errorCode 070 * Key to resource bundle. You can use <code>ResourceBundle rb = 071 * ResourceBunde.getBundle(rbName,locale); 072 * String localizedStr = rb.getString(errorCode)</code>. 073 * @param args 074 * arguments to message. If it is not present pass the as null. 075 */ 076 public IdRepoFatalException(String rbName, String errorCode, Object[] args) 077 { 078 super(rbName, errorCode, args); 079 } 080 081}
Copyright © 2010-2017, ForgeRock All Rights Reserved.