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
ConstructorDescriptionNameAlreadyExistsException
(String msg, String name, int type) Constructs aNameAlreadyExistsException
instance.NameAlreadyExistsException
(String rbName, String errorCode, Object[] args, String name, int type) Constructs aNameAlreadyExistsException
instance.NameAlreadyExistsException
(String rbName, String errorCode, Object[] args, Throwable t, String name, int type) Constructs aNameAlreadyExistsException
instance.NameAlreadyExistsException
(Throwable t, String name, int type) Constructs aNameAlreadyExistsException
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the name that already exists.int
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 Details
-
NameAlreadyExistsException
Constructs aNameAlreadyExistsException
instance.- 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 aNameAlreadyExistsException
instance. 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 aNameAlreadyExistsException
instance. 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 aNameAlreadyExistsException
instance.- 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_COLLECTION
RESPONSE_PROVIDER_COLLECTION
CONDITION_COLLECTION
REFERRAL_COLLECTION
REFERRAL_TYPE
SUBJECT_TYPE
andSERVICE
- Returns:
- type of object that already exists
-