com.sun.identity.policy
Class InvalidFormatException

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

public class InvalidFormatException
extends PolicyException

Exception thrown if a name of an object such as policy, rule or referral has invalid format


Fields inherited from class com.sun.identity.policy.PolicyException
CONDITION_COLLECTION, ORGANIZATION, POLICY, REFERRAL_COLLECTION, REFERRAL_TYPE, RULE, SERVICE, USER_COLLECTION
 
Constructor Summary
InvalidFormatException(java.lang.String msg, java.lang.String name, int type)
          Constructor
InvalidFormatException(java.lang.Throwable t, java.lang.String name, int type)
          Constructor
 
Method Summary
 java.lang.String getName()
          Gets the name of the object that encountered an invalid format.
 int getObjectType()
          Gets the type of object which encountered an invalid format.
 

Constructor Detail

InvalidFormatException

public InvalidFormatException(java.lang.String msg,
                              java.lang.String name,
                              int type)
Constructor
Parameters:
msg - exception message
name - name that was in invalid format
type - type of object that had invalid name format

InvalidFormatException

public InvalidFormatException(java.lang.Throwable t,
                              java.lang.String name,
                              int type)
Constructor
Parameters:
t - nested root cause exception
msg - exception message
name - name that was in invalid format
type - type of object that had invalid name format
Method Detail

getName

public java.lang.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 an invalid format. The defined objects are POLICY, RULE and SERVICE
Returns:
type of object that had invalid name format