Package com.sun.identity.policy
Class NameNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.policy.PolicyException
-
- com.sun.identity.policy.NameNotFoundException
-
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage
,Serializable
@SupportedAll public class NameNotFoundException extends PolicyException
Exception thrown if an object such as policy, rule or referral for the given name does not exist.- 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 NameNotFoundException(String msg, String name, int type)
ConstructorNameNotFoundException(String rbName, String errCode, Object[] args, String name, int type)
ConstructorNameNotFoundException(String rbName, String errCode, Object[] args, Throwable t, String name, int type)
ConstructorNameNotFoundException(Throwable t, String name, int type)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Gets the name that was not found.int
getObjectType()
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
-
NameNotFoundException
public NameNotFoundException(String msg, String name, int type)
Constructor- Parameters:
msg
- exception messagename
- name that was not foundtype
- type of object whose name was not found
-
NameNotFoundException
public NameNotFoundException(String rbName, String errCode, Object[] args, String name, int type)
Constructor- Parameters:
rbName
- Resource bundle name of exception messageerrCode
- id used with resource bundle to get error messageargs
- any arguments for message formatting. null if no additional arguments are necessaryname
- name that was not foundtype
- type of object whose name was not found
-
NameNotFoundException
public NameNotFoundException(String rbName, String errCode, Object[] args, Throwable t, String name, int type)
Constructor- Parameters:
rbName
- Resource bundle name of exception messageerrCode
- id used with resource bundle to get error messageargs
- any arguments for message formatting. null if no additional arguments are necessaryt
- nested root cause exceptionname
- name that was not foundtype
- type of object whose name was not found
-
-
Method Detail
-
getName
public String getName()
Gets the name that was not found.- Returns:
- name that was not found.
-
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 for which name was not found
-
-