com.sun.identity.policy
Class InvalidNameException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sun.identity.policy.ChainedException
              extended bycom.sun.identity.policy.PolicyException
                  extended bycom.sun.identity.policy.InvalidNameException
All Implemented Interfaces:
com.sun.identity.common.L10NMessage, java.io.Serializable

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
InvalidNameException(java.lang.String msg, java.lang.String name, int type)
          Constructor
InvalidNameException(java.lang.String rbName, java.lang.String errCode, java.lang.Object[] args, java.lang.String name, int type)
          Constructor
InvalidNameException(java.lang.String rbName, java.lang.String errCode, java.lang.Object[] args, java.lang.Throwable t, java.lang.String name, int type)
          Constructor
InvalidNameException(java.lang.Throwable t, java.lang.String name, int type)
          Constructor
 
Method Summary
 java.lang.String getName()
          Gets the name that is invalid
 int getObjectType()
          Gets the type of object which encountered the invalid name.
 
Methods inherited from class com.sun.identity.policy.PolicyException
getCompleteL10NMessage, getErrorCode, getL10NMessage, getMessage, getMessageArgs, getNestedException, getResourceBundleName, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidNameException

public InvalidNameException(java.lang.String msg,
                            java.lang.String name,
                            int type)
Constructor

Parameters:
msg - exception message
name - name that is invalid
type - type of object that had invalid name

InvalidNameException

public InvalidNameException(java.lang.String rbName,
                            java.lang.String errCode,
                            java.lang.Object[] args,
                            java.lang.String name,
                            int type)
Constructor

Parameters:
rbName - Resource bundle name of exception message
errCode - id used with resource bundle to get error message
args - any arguments for message formatting. null if no additional arguments are necessary
name - name that is invalid
type - type of object that had invalid name

InvalidNameException

public InvalidNameException(java.lang.String rbName,
                            java.lang.String errCode,
                            java.lang.Object[] args,
                            java.lang.Throwable t,
                            java.lang.String name,
                            int type)
Constructor

Parameters:
rbName - Resource bundle name of exception message
errCode - id used with resource bundle to get error message
args - any arguments for message formatting. null if no additional arguments are necessary
t - nested root cause exception
name - name that is invalid
type - type of object that had invalid name

InvalidNameException

public InvalidNameException(java.lang.Throwable t,
                            java.lang.String name,
                            int type)
Constructor

Parameters:
t - nested root cause exception
name - name that is invalid
type - type of object that had invalid name
Method Detail

getName

public java.lang.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 are POLICY, RULE, ORGANIZATION, USER_COLLECTION and SERVICE

Returns:
type of object that had invalid name


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.