Package com.sun.identity.policy
Class NameAlreadyExistsException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- com.sun.identity.policy.PolicyException
 - 
- com.sun.identity.policy.NameAlreadyExistsException
 
 
 
 
 
- 
- All Implemented Interfaces:
 com.sun.identity.shared.locale.L10NMessage,Serializable
@SupportedAll 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
 
 
- 
- 
Field Summary
- 
Fields inherited from class com.sun.identity.policy.PolicyException
CONDITION_COLLECTION, ORGANIZATION, POLICY, REFERRAL_COLLECTION, REFERRAL_TYPE, RESPONSE_PROVIDER_COLLECTION, RULE, SERVICE, SUBJECT_TYPE, USER_COLLECTION 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NameAlreadyExistsException(String msg, String name, int type)Constructs aNameAlreadyExistsExceptioninstance.NameAlreadyExistsException(String rbName, String errorCode, Object[] args, String name, int type)Constructs aNameAlreadyExistsExceptioninstance.NameAlreadyExistsException(String rbName, String errorCode, Object[] args, Throwable t, String name, int type)Constructs aNameAlreadyExistsExceptioninstance.NameAlreadyExistsException(Throwable t, String name, int type)Constructs aNameAlreadyExistsExceptioninstance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the name that already exists.intgetObjectType()Gets the type of object which encountered the invalid name.- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
NameAlreadyExistsException
public NameAlreadyExistsException(String msg, String name, int type)
Constructs aNameAlreadyExistsExceptioninstance.- Parameters:
 msg- exception messagename- name that already existstype- type of object whose name already exist
 
- 
NameAlreadyExistsException
public NameAlreadyExistsException(String rbName, String errorCode, Object[] args, String name, int type)
Constructs aNameAlreadyExistsExceptioninstance. With localized error message- Parameters:
 rbName- Resource bundle nameerrorCode- error code to use access the resource bundleargs- parameters for message formattingname- name that already existstype- type of object whose name already exist
 
- 
NameAlreadyExistsException
public NameAlreadyExistsException(String rbName, String errorCode, Object[] args, Throwable t, String name, int type)
Constructs aNameAlreadyExistsExceptioninstance. With localized error message- Parameters:
 rbName- Resource bundle nameerrorCode- error code to use access the resource bundleargs- parameters for message formattingt- nested root cause exceptionname- name that already existstype- type of object whose name already exist
 
 - 
 
- 
Method Detail
- 
getName
public String getName()
Gets the name that already exists.- Returns:
 - name that already exists
 
 
- 
getObjectType
public int getObjectType()
Gets the type of object which encountered the invalid name. The defined objects arePOLICY,RULE,ORGANIZATION,USER_COLLECTIONRESPONSE_PROVIDER_COLLECTIONCONDITION_COLLECTIONREFERRAL_COLLECTIONREFERRAL_TYPESUBJECT_TYPEandSERVICE- Returns:
 - type of object that already exists
 
 
 - 
 
 -