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 UnsupportedDocumentRoleException

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.UnsupportedDocumentRoleException

All Implemented Interfaces:
Serializable

public class UnsupportedDocumentRoleException
extends IllegalArgumentException

Unsupported document role. When a role is assigned to an account (within a context) the context must allow the document role. This exception is thrown if the document role is not supported by the context.

The error message associated with this exception is:

IRM-01051: The context \"{1}\" does not support role \"{0}\".
See Also:
Serialized Form

Constructor Summary
UnsupportedDocumentRoleException(DocumentRole role, ContextInstance context)
          Constructor.
UnsupportedDocumentRoleException(DocumentRole role, ContextInstance context, Throwable cause)
          Constructor.

 

Method Summary
 ContextInstance getContext()
          The context.
 DocumentRole getRole()
          The invalid document role.

 

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

UnsupportedDocumentRoleException

public UnsupportedDocumentRoleException(DocumentRole role,
                                        ContextInstance context)
Constructor.
Parameters:
role - The invalid document role.
context - The context.

UnsupportedDocumentRoleException

public UnsupportedDocumentRoleException(DocumentRole role,
                                        ContextInstance context,
                                        Throwable cause)
Constructor.
Parameters:
role - The invalid document role.
context - The context.
cause - Cause of the exception.

Method Detail

getRole

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

getContext

public final ContextInstance getContext()
The context.
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.