com.sun.identity.policy
Class  NameAlreadyExistsException
java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sun.identity.policy.ChainedException
                    |
                    +--com.sun.identity.policy.PolicyException
                          |
                          +--com.sun.identity.policy.NameAlreadyExistsException
- All Implemented Interfaces: 
- com.sun.identity.common.L10NMessage, java.io.Serializable
- public class NameAlreadyExistsException- extends PolicyException
Exception thrown if a name of an object such as policy, rule or 
  referral already exists (used by another object of the same type)
- See Also: 
- Serialized Form
 
| Constructor Summary | 
| NameAlreadyExistsException(java.lang.String msg,
                           java.lang.String name,
                           int type)Constructs a
 NameAlreadyExistsExceptioninstance. | 
| NameAlreadyExistsException(java.lang.String rbName,
                           java.lang.String errorCode,
                           java.lang.Object[] args,
                           java.lang.String name,
                           int type)Constructs a
 NameAlreadyExistsExceptioninstance. | 
| NameAlreadyExistsException(java.lang.String rbName,
                           java.lang.String errorCode,
                           java.lang.Object[] args,
                           java.lang.Throwable t,
                           java.lang.String name,
                           int type)Constructs a
 NameAlreadyExistsExceptioninstance. | 
| NameAlreadyExistsException(java.lang.Throwable t,
                           java.lang.String name,
                           int type)Constructs a
 NameAlreadyExistsExceptioninstance. | 
 
| Method Summary | 
|  java.lang.String | getName()Gets the name that already exists.
 | 
|  int | getObjectType()Gets the type of object which already exists.
 | 
 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getLocalizedMessage, toString | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
NameAlreadyExistsException
public NameAlreadyExistsException(java.lang.String msg,
                                  java.lang.String name,
                                  int type)
- Constructs a NameAlreadyExistsExceptioninstance.
- 
- Parameters:
- msg- exception message
- name- name that already exists
- type- type of object whose name already exist
 
NameAlreadyExistsException
public NameAlreadyExistsException(java.lang.String rbName,
                                  java.lang.String errorCode,
                                  java.lang.Object[] args,
                                  java.lang.String name,
                                  int type)
- Constructs a NameAlreadyExistsExceptioninstance.
 With localized error message
- 
- Parameters:
- rbName- Resource bundle name
- errorCode- error code to use access the resource bundle
- args- parameters for message formatting
- name- name that already exists
- type- type of object whose name already exist
 
NameAlreadyExistsException
public NameAlreadyExistsException(java.lang.String rbName,
                                  java.lang.String errorCode,
                                  java.lang.Object[] args,
                                  java.lang.Throwable t,
                                  java.lang.String name,
                                  int type)
- Constructs a NameAlreadyExistsExceptioninstance.
 With localized error message
- 
- Parameters:
- rbName- Resource bundle name
- errorCode- error code to use access the resource bundle
- args- parameters for message formatting
- t- nested root cause exception
- name- name that already exists
- type- type of object whose name already exist
 
NameAlreadyExistsException
public NameAlreadyExistsException(java.lang.Throwable t,
                                  java.lang.String name,
                                  int type)
- Constructs a NameAlreadyExistsExceptioninstance.
- 
- Parameters:
- t- nested root cause exception
- name- name that already exists
- type- type of object whose name already exist
 
getName
public java.lang.String getName()
- Gets the name that already exists.- 
- Returns:
- name that already exists
 
getObjectType
public int getObjectType()
- Gets the type of object which already exists.
 The defined objects are POLICY_NAME,RULE_NAMEandSERVICE_NAME
- 
- Returns:
- type of object that already exists
 
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.