001/** 002* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 003* 004* Copyright (c) 2008 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: SAML2InvalidNameIDPolicyException.java,v 1.1 2008/07/24 17:46:34 exu Exp $ 026*/ 027 028package com.sun.identity.saml2.common; 029 030 031/** 032 * This class is an extension point for all SAML related exceptions. 033 * This class also handles message localization in SAML exceptions. 034 * 035 * @supported.all.api 036 */ 037public class SAML2InvalidNameIDPolicyException extends SAML2Exception { 038 039 /** 040 * Constructs a new <code>SAML2InvalidNameIDPolicyException</code> without 041 * a nested <code>Throwable</code>. 042 * @param rbName Resource Bundle Name to be used for getting 043 * localized error message. 044 * @param errorCode Key to resource bundle. You can use 045 * <pre> 046 * ResourceBundle rb = ResourceBunde.getBundle (rbName,locale); 047 * String localizedStr = rb.getString(errorCode); 048 * </pre> 049 * @param args arguments to message. If it is not present pass them 050 * as null 051 * 052 */ 053 public SAML2InvalidNameIDPolicyException( 054 String rbName, String errorCode, Object[] args) 055 { 056 super(rbName, errorCode, args); 057 } 058 059 /** 060 * Constructs a new <code>SAML2InvalidNameIDPolicyException</code> with 061 * the given message. 062 * 063 * @param message message for this exception. This message can be later 064 * retrieved by <code>getMessage()</code> method. 065 * 066 */ 067 public SAML2InvalidNameIDPolicyException(String message) { 068 super(message); 069 } 070 071 /** 072 * Constructs an <code>SAML2InvalidNameIDPolicyException</code> with given 073 * <code>Throwable</code>. 074 * 075 * @param t Exception nested in the new exception. 076 * 077 */ 078 public SAML2InvalidNameIDPolicyException(Throwable t) { 079 super(t); 080 } 081} 082
Copyright © 2010-2017, ForgeRock All Rights Reserved.