Package com.sun.identity.policy
Class ObjectInUseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.identity.policy.PolicyException
com.sun.identity.policy.ObjectInUseException
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage,Serializable
Exception thrown to indicate that an object you are trying to
remove is in use and therefore can not be removed.
- 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
ConstructorsConstructorDescriptionObjectInUseException(String msg, String name, Object user) Constructs anObjectInUseExceptionobjectConstructs anObjectInUseExceptionobjectObjectInUseException(String rbName, String errCode, Object[] args, Throwable t, String name, Object user) Constructs anObjectInUseExceptionobjectObjectInUseException(Throwable t, String name, Object user) Constructs anObjectInUseExceptionobject -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
ObjectInUseException
Constructs anObjectInUseExceptionobject- Parameters:
msg- exception messagename- name of the object that is in useuser- object that is using the object you are trying to remove
-
ObjectInUseException
Constructs anObjectInUseExceptionobject- 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- name of the object that is in useuser- object that is using the object you are trying to remove
-
ObjectInUseException
public ObjectInUseException(String rbName, String errCode, Object[] args, Throwable t, String name, Object user) Constructs anObjectInUseExceptionobject- 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- name of the object that is in useuser- object that is using the object you are trying to remove
-
ObjectInUseException
Constructs anObjectInUseExceptionobject- Parameters:
t- nested root cause exceptionname- name of the object that is in useuser- object that is using the object you are trying to remove
-
-
Method Details
-
getName
Gets the name that is in use.- Returns:
- name of the object that is in use
-