com.sun.identity.policy
Class ObjectInUseException

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.ObjectInUseException

public class ObjectInUseException
extends PolicyException

Exception thrown to indicate that an object you are trying to remove is in use and therefore can not be removed.

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
ObjectInUseException(String msg, String name, Object user)
          Constructs an ObjectInUseException object
ObjectInUseException(String rbName, String errCode, Object[] args, String name, Object user)
          Constructs an ObjectInUseException object
ObjectInUseException(String rbName, String errCode, Object[] args, Throwable t, String name, Object user)
          Constructs an ObjectInUseException object
ObjectInUseException(Throwable t, String name, Object user)
          Constructs an ObjectInUseException object
 
Method Summary
 String getName()
          Gets the name that is in use.
 

Constructor Detail

ObjectInUseException

public ObjectInUseException(String msg,
                            String name,
                            Object user)
Constructs an ObjectInUseException object

Parameters:
msg - exception message
name - name of the object that is in use
user - object that is using the object you are trying to remove

ObjectInUseException

public ObjectInUseException(String rbName,
                            String errCode,
                            Object[] args,
                            String name,
                            Object user)
Constructs an ObjectInUseException object

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 - name of the object that is in use
user - 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 an ObjectInUseException object

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 - name of the object that is in use
user - object that is using the object you are trying to remove

ObjectInUseException

public ObjectInUseException(Throwable t,
                            String name,
                            Object user)
Constructs an ObjectInUseException object

Parameters:
t - nested root cause exception
name - name of the object that is in use
user - object that is using the object you are trying to remove
Method Detail

getName

public String getName()
Gets the name that is in use.

Returns:
name of the object that is in use