com.sun.identity.policy
Class NameNotFoundException

com.sun.identity.policy.PolicyException
  |
  +--com.sun.identity.policy.NameNotFoundException

public class NameNotFoundException
extends PolicyException

Exception thrown if an object such as policy, rule or referral for the given name does not exist


Fields inherited from class com.sun.identity.policy.PolicyException
CONDITION_COLLECTION, ORGANIZATION, POLICY, REFERRAL_COLLECTION, REFERRAL_TYPE, RULE, SERVICE, USER_COLLECTION
 
Constructor Summary
NameNotFoundException(java.lang.String msg, java.lang.String name, int type)
          Constructor
NameNotFoundException(java.lang.Throwable t, java.lang.String name, int type)
          Constructor
 
Method Summary
 java.lang.String getName()
          Gets the name that was not found.
 int getObjectType()
          Gets the type of object for which name was not found The defined objects are POLICY, RULE, ORGANIZATION, USER_COLLECTION and SERVICE
 

Constructor Detail

NameNotFoundException

public NameNotFoundException(java.lang.String msg,
                             java.lang.String name,
                             int type)
Constructor
Parameters:
msg - exception message
name - name that was not found
type - type of object whose name was not found

NameNotFoundException

public NameNotFoundException(java.lang.Throwable t,
                             java.lang.String name,
                             int type)
Constructor
Parameters:
t - nested root cause exception
name - name that was not found
type - type of object whose name was not found
Method Detail

getName

public java.lang.String getName()
Gets the name that was not found.
Returns:
name that was not found.

getObjectType

public int getObjectType()
Gets the type of object for which name was not found The defined objects are POLICY, RULE, ORGANIZATION, USER_COLLECTION and SERVICE
Returns:
type of object for which name was not found