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 InvalidDocumentRoleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by oracle.irm.engine.rights.context.InvalidDocumentRoleException

All Implemented Interfaces:
Serializable

public class InvalidDocumentRoleException
extends IllegalArgumentException

Invalid document role. When a role is added to a template it must belong to the same Domain. If the domains do not match, this exception will be thrown when the template is created or edited.

The error message associated with this exception is:

IRM-01044: The role \"{0}\" cannot be used with template \"{1}\" as their domains do not match.
See Also:
Serialized Form

Constructor Summary
InvalidDocumentRoleException(DocumentRole role, ContextTemplate template)
          Constructor.
InvalidDocumentRoleException(DocumentRole role, ContextTemplate template, Throwable cause)
          Constructor.

 

Method Summary
 DocumentRole getRole()
          The document role.
 ContextTemplate getTemplate()
          The context template.

 

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

InvalidDocumentRoleException

public InvalidDocumentRoleException(DocumentRole role,
                                    ContextTemplate template)
Constructor.
Parameters:
role - The document role.
template - The context template.

InvalidDocumentRoleException

public InvalidDocumentRoleException(DocumentRole role,
                                    ContextTemplate template,
                                    Throwable cause)
Constructor.
Parameters:
role - The document role.
template - The context template.
cause - Cause of the exception.

Method Detail

getRole

public final DocumentRole getRole()
The document role.
Returns:
the value of the property. This method will never return null.

getTemplate

public final ContextTemplate getTemplate()
The context template.
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.