Package com.sun.identity.policy
Class InvalidFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.policy.PolicyException
-
- com.sun.identity.policy.InvalidFormatException
-
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage
,Serializable
@SupportedAll public class InvalidFormatException extends PolicyException
Exception thrown if a name of an object such as policy, rule or referral has invalid format- 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 InvalidFormatException(String msg, String name, int type)
Constructs aInvalidFormatException
instance.InvalidFormatException(String rbName, String errCode, Object[] args, String name, int type)
Constructs aInvalidFormatException
instance.InvalidFormatException(String rbName, String errCode, Object[] args, Throwable t, String name, int type)
Constructs aInvalidFormatException
instance.InvalidFormatException(Throwable t, String name, int type)
Constructs aInvalidFormatException
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Gets the name of the object that encountered an invalid format.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
-
InvalidFormatException
public InvalidFormatException(String msg, String name, int type)
Constructs aInvalidFormatException
instance.- Parameters:
msg
- exception messagename
- name that was in invalid formattype
- type of object that had invalid name format
-
InvalidFormatException
public InvalidFormatException(Throwable t, String name, int type)
Constructs aInvalidFormatException
instance.- Parameters:
t
- nested root cause exceptionname
- name that was in invalid formattype
- type of object that had invalid name format
-
InvalidFormatException
public InvalidFormatException(String rbName, String errCode, Object[] args, Throwable t, String name, int type)
Constructs aInvalidFormatException
instance.- 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 in invalid formattype
- type of object that had invalid name format
-
InvalidFormatException
public InvalidFormatException(String rbName, String errCode, Object[] args, String name, int type)
Constructs aInvalidFormatException
instance.- 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 in invalid formattype
- type of object that had invalid name format
-
-
Method Detail
-
getName
public String getName()
Gets the name of the object that encountered an invalid format.- Returns:
- name that was in invalid format
-
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 had invalid name format
-
-