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 CannotRemoveAdministratorsException

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

All Implemented Interfaces:
Serializable

public class CannotRemoveAdministratorsException
extends Exception

Cannot remove administrators. There must be at least one administrator for a Domain. This exception indicates that an operation has been performed that removes all administrators.

The error message associated with this exception is:

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

Constructor Summary
CannotRemoveAdministratorsException(Collection<Account> administrators)
          Constructor.
CannotRemoveAdministratorsException(Collection<Account> administrators, Throwable cause)
          Constructor.

 

Method Summary
 Collection<Account> getAdministrators()
          The existing administrators.

 

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

CannotRemoveAdministratorsException

public CannotRemoveAdministratorsException(Collection<Account> administrators)
Constructor.
Parameters:
administrators - The existing administrators.

CannotRemoveAdministratorsException

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

Method Detail

getAdministrators

public final Collection<Account> getAdministrators()
The existing administrators.

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.