com.sun.identity.policy
Class LimitExceededException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.identity.policy.PolicyException
              extended by com.sun.identity.policy.LimitExceededException

public class LimitExceededException
extends PolicyException

Exception thrown if any configured limit is exceeded

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
LimitExceededException(String msg, String name, int type)
          Constructor
LimitExceededException(String rbName, String errCode, Object[] args, String name, int type)
          Constructor
LimitExceededException(String rbName, String errCode, Object[] args, Throwable t, String name, int type)
          Constructor
LimitExceededException(String msg, Throwable t, String name, int type)
          Constructor
LimitExceededException(Throwable t, String name, int type)
          Constructor
 
Method Summary
 String getName()
          Gets the name of the object for which limit was exceeded
 int getObjectType()
          Gets the type of object which encountered the invalid name.
 

Constructor Detail

LimitExceededException

public LimitExceededException(String msg,
                              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(String rbName,
                              String errCode,
                              Object[] args,
                              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(String rbName,
                              String errCode,
                              Object[] args,
                              Throwable t,
                              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(Throwable t,
                              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(String msg,
                              Throwable t,
                              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 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 which encountered the invalid name. The defined objects are POLICY, RULE, ORGANIZATION, USER_COLLECTION RESPONSE_PROVIDER_COLLECTION CONDITION_COLLECTION REFERRAL_COLLECTION REFERRAL_TYPE SUBJECT_TYPE and SERVICE

Returns:
type of object for which limit was exceeded