Class ObjectInUseException

  • All Implemented Interfaces:
    com.sun.identity.shared.locale.L10NMessage, Serializable

    @SupportedAll
    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
    • 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