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 CannotRemoveDocumentRoleException

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

All Implemented Interfaces:
Serializable

public class CannotRemoveDocumentRoleException
extends Exception

The document role cannot be deleted. A document role cannot be deleted is there are rights assigned to the role. The document role can only be deleted once all rights have been unassigned. This is restriction stops a role deletion affecting user's rights.

The error message associated with this exception is:

IRM-01036: The document role \"{0}\" cannot be deleted as there are rights assigned to this role.
See Also:
Serialized Form

Constructor Summary
CannotRemoveDocumentRoleException(DocumentRole documentRole)
          Constructor.
CannotRemoveDocumentRoleException(DocumentRole documentRole, Throwable cause)
          Constructor.

 

Method Summary
 DocumentRole getDocumentRole()
          The document role that cannot be deleted.

 

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

CannotRemoveDocumentRoleException

public CannotRemoveDocumentRoleException(DocumentRole documentRole)
Constructor.
Parameters:
documentRole - The document role that cannot be deleted.

CannotRemoveDocumentRoleException

public CannotRemoveDocumentRoleException(DocumentRole documentRole,
                                         Throwable cause)
Constructor.
Parameters:
documentRole - The document role that cannot be deleted.
cause - Cause of the exception.

Method Detail

getDocumentRole

public final DocumentRole getDocumentRole()
The document role that cannot be deleted.
Returns:
the value of the property. This method will never return 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.