Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.rights.context
Class CannotRemoveManagersException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.irm.engine.rights.context.CannotRemoveManagersException

All Implemented Interfaces:
Serializable

public class CannotRemoveManagersException
extends Exception

Cannot remove managers. There must be at least one manager for an Domain or Context. This exception indicates that an operation has been performed that removes all managers.

The error message associated with this exception is:

IRM-01037: The specified accounts cannot be removed as this action would remove all managers.
See Also:
Serialized Form

Constructor Summary
CannotRemoveManagersException(Collection<Account> managers)
          Constructor.
CannotRemoveManagersException(Collection<Account> managers, Throwable cause)
          Constructor.

 

Method Summary
 Collection<Account> getManagers()
          The existing managers.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

CannotRemoveManagersException

public CannotRemoveManagersException(Collection<Account> managers)
Constructor.
Parameters:
managers - The existing managers.

CannotRemoveManagersException

public CannotRemoveManagersException(Collection<Account> managers,
                                     Throwable cause)
Constructor.
Parameters:
managers - The existing managers.
cause - Cause of the exception.

Method Detail

getManagers

public final Collection<Account> getManagers()
The existing managers.

State

The collection returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. If this collection is empty this method returns an empty collection rather than returning null.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.