com.sun.identity.policy
Class NameAlreadyExistsException
com.sun.identity.policy.PolicyException
|
+--com.sun.identity.policy.NameAlreadyExistsException
- 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)
Method Summary |
java.lang.String |
getName()
Gets the name that already exists. |
int |
getObjectType()
Gets the type of object which already exists. |
NameAlreadyExistsException
public NameAlreadyExistsException(java.lang.String msg,
java.lang.String name,
int type)
- Constructor
- Parameters:
msg
- exception messagename
- name that already existstype
- type of object whose name already exist
NameAlreadyExistsException
public NameAlreadyExistsException(java.lang.Throwable t,
java.lang.String name,
int type)
- Constructor
- Parameters:
t
- nested root cause exceptionname
- name that already existstype
- 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_NAME
and SERVICE_NAME
- Returns:
- type of object that already exists