com.sun.identity.policy
Class LimitExceededException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sun.identity.policy.ChainedException
                    |
                    +--com.sun.identity.policy.PolicyException
                          |
                          +--com.sun.identity.policy.LimitExceededException
All Implemented Interfaces:
com.sun.identity.common.L10NMessage, java.io.Serializable

public class LimitExceededException
extends PolicyException

Exception thrown if any limit is exceeded

See Also:
Serialized Form

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
LimitExceededException(java.lang.String msg, java.lang.String name, int type)
          Constructor
LimitExceededException(java.lang.String rbName, java.lang.String errCode, java.lang.Object[] args, java.lang.String name, int type)
          Constructor
LimitExceededException(java.lang.String rbName, java.lang.String errCode, java.lang.Object[] args, java.lang.Throwable t, java.lang.String name, int type)
          Constructor
LimitExceededException(java.lang.String msg, java.lang.Throwable t, java.lang.String name, int type)
          Constructor
LimitExceededException(java.lang.Throwable t, java.lang.String name, int type)
          Constructor
 
Method Summary
 java.lang.String getName()
          Gets the name of the object for which limit was exceeded
 int getObjectType()
          Gets the type of object for which limit was exceeded The defined objects are POLICY, RULE, ORGANIZATION, USER_COLLECTION and SERVICE
 
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, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LimitExceededException

public LimitExceededException(java.lang.String msg,
                              java.lang.String name,
                              int type)
Constructor
Parameters:
msg - exception message
name - name of the object for which limit was exceeded
type - type of object for which the limit was exceeded

LimitExceededException

public LimitExceededException(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 - of the object for which limit was exceeded
type - of object for which the limit was exceeded

LimitExceededException

public LimitExceededException(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 - of the object for which limit was exceeded
type - of object for which the limit was exceeded

LimitExceededException

public LimitExceededException(java.lang.Throwable t,
                              java.lang.String name,
                              int type)
Constructor
Parameters:
t - nested root cause exception
name - of the object for which limit was exceeded
type - of object for which the limit was exceeded

LimitExceededException

public LimitExceededException(java.lang.String msg,
                              java.lang.Throwable t,
                              java.lang.String name,
                              int type)
Constructor
Parameters:
msg - exception message
t - nested root cause exception
name - of the object for which limit was exceeded
type - of object for which the limit was exceeded
Method Detail

getName

public java.lang.String getName()
Gets the name of the object for which limit was exceeded
Returns:
name of the object for which limit was exceeded

getObjectType

public int getObjectType()
Gets the type of object for which limit was exceeded The defined objects are POLICY, RULE, ORGANIZATION, USER_COLLECTION and SERVICE
Returns:
type of object for which limit was exceeded


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