Package com.sun.identity.policy
Class LimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.identity.policy.PolicyException
com.sun.identity.policy.LimitExceededException
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage
,Serializable
Exception thrown if any configured limit is exceeded
- See Also:
-
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
ConstructorDescriptionLimitExceededException
(String msg, String name, int type) ConstructorLimitExceededException
(String rbName, String errCode, Object[] args, String name, int type) ConstructorLimitExceededException
(String rbName, String errCode, Object[] args, Throwable t, String name, int type) ConstructorLimitExceededException
(String msg, Throwable t, String name, int type) ConstructorLimitExceededException
(Throwable t, String name, int type) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the name of the object for which limit was exceededint
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 Details
-
LimitExceededException
Constructor- Parameters:
msg
- exception messagename
- name of the object for which limit was exceededtype
- type of object for which the limit was exceeded
-
LimitExceededException
Constructor- 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
- of the object for which limit was exceededtype
- 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 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
- of the object for which limit was exceededtype
- of object for which the limit was exceeded
-
LimitExceededException
Constructor- Parameters:
t
- nested root cause exceptionname
- of the object for which limit was exceededtype
- of object for which the limit was exceeded
-
LimitExceededException
Constructor- Parameters:
msg
- exception messaget
- nested root cause exceptionname
- of the object for which limit was exceededtype
- of object for which the limit was exceeded
-
-
Method Details
-
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 arePOLICY
,RULE
,ORGANIZATION
,USER_COLLECTION
RESPONSE_PROVIDER_COLLECTION
CONDITION_COLLECTION
REFERRAL_COLLECTION
REFERRAL_TYPE
SUBJECT_TYPE
andSERVICE
- Returns:
- type of object for which limit was exceeded
-