com.sun.identity.policy
Class ObjectInUseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sun.identity.policy.ChainedException
                    |
                    +--com.sun.identity.policy.PolicyException
                          |
                          +--com.sun.identity.policy.ObjectInUseException
All Implemented Interfaces:
com.sun.identity.common.L10NMessage, java.io.Serializable

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

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(java.lang.String msg, java.lang.String name, java.lang.Object user)
          Constructs an ObjectInUseException object
ObjectInUseException(java.lang.String rbName, java.lang.String errCode, java.lang.Object[] args, java.lang.String name, java.lang.Object user)
          Constructs an ObjectInUseException object
ObjectInUseException(java.lang.String rbName, java.lang.String errCode, java.lang.Object[] args, java.lang.Throwable t, java.lang.String name, java.lang.Object user)
          Constructs an ObjectInUseException object
ObjectInUseException(java.lang.Throwable t, java.lang.String name, java.lang.Object user)
          Constructs an ObjectInUseException object
 
Method Summary
 java.lang.String getName()
          Gets the name that is invalid
 
Methods inherited from class com.sun.identity.policy.PolicyException
getCompleteL10NMessage, getErrorCode, getL10NMessage, getMessage, getMessageArgs, getNestedException, getResourceBundleName, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectInUseException

public ObjectInUseException(java.lang.String msg,
                            java.lang.String name,
                            java.lang.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(java.lang.String rbName,
                            java.lang.String errCode,
                            java.lang.Object[] args,
                            java.lang.String name,
                            java.lang.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(java.lang.String rbName,
                            java.lang.String errCode,
                            java.lang.Object[] args,
                            java.lang.Throwable t,
                            java.lang.String name,
                            java.lang.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(java.lang.Throwable t,
                            java.lang.String name,
                            java.lang.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 java.lang.String getName()
Gets the name that is invalid
Returns:
name of the object that is in use


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.