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
ConstructorDescriptionObjectInUseException
(String msg, String name, Object user) Constructs anObjectInUseException
objectConstructs anObjectInUseException
objectObjectInUseException
(String rbName, String errCode, Object[] args, Throwable t, String name, Object user) Constructs anObjectInUseException
objectObjectInUseException
(Throwable t, String name, Object user) Constructs anObjectInUseException
object -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
ObjectInUseException
Constructs anObjectInUseException
object- 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 anObjectInUseException
object- 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 anObjectInUseException
object- 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 anObjectInUseException
object- 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
-