Package com.sun.identity.policy
Class InvalidNameException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.policy.PolicyException
-
- com.sun.identity.policy.InvalidNameException
-
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage,Serializable
@SupportedAll public class InvalidNameException extends PolicyException
Exception thrown if a name of an object such as policy, rule or referral is invalid- 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 InvalidNameException(String msg, String name, int type)ConstructorInvalidNameException(String rbName, String errCode, Object[] args, String name, int type)ConstructorInvalidNameException(String rbName, String errCode, Object[] args, Throwable t, String name, int type)ConstructorInvalidNameException(Throwable t, String name, int type)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the name that is invalidintgetObjectType()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
-
InvalidNameException
public InvalidNameException(String msg, String name, int type)
Constructor- Parameters:
msg- exception messagename- name that is invalidtype- type of object that had invalid name
-
InvalidNameException
public InvalidNameException(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 is invalidtype- type of object that had invalid name
-
InvalidNameException
public InvalidNameException(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 is invalidtype- type of object that had invalid name
-
-
Method Detail
-
getName
public String getName()
Gets the name that is invalid- Returns:
- name that is invalid
-
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 had invalid name
-
-