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
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:
-
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
ConstructorsConstructorDescriptionNameAlreadyExistsException(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
Modifier and TypeMethodDescriptiongetName()Gets the name that already exists.intGets 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 Details
-
NameAlreadyExistsException
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
-
NameAlreadyExistsException
Constructs aNameAlreadyExistsExceptioninstance.- Parameters:
t- nested root cause exceptionname- name that already existstype- type of object whose name already exist
-
-
Method Details
-
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
-