Skip navigation links

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

E12907-01


oracle.irm.engine.rights.context
Class AccountAlreadyAssignedException

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

All Implemented Interfaces:
Serializable

public class AccountAlreadyAssignedException
extends Exception

Account already assigned a role. This exception is raised when an account already has a role assigned with a context.

The error message associated with this exception is:

IRM-01030: The account \"{0}\" has already been assigned the role \"{1}\".
See Also:
Serialized Form

Constructor Summary
AccountAlreadyAssignedException(Account account, DocumentRole role)
          Constructor.
AccountAlreadyAssignedException(Account account, DocumentRole role, Throwable cause)
          Constructor.

 

Method Summary
 Account getAccount()
          The account.
 DocumentRole getRole()
          The 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

AccountAlreadyAssignedException

public AccountAlreadyAssignedException(Account account,
                                       DocumentRole role)
Constructor.
Parameters:
account - The account.
role - The document role.

AccountAlreadyAssignedException

public AccountAlreadyAssignedException(Account account,
                                       DocumentRole role,
                                       Throwable cause)
Constructor.
Parameters:
account - The account.
role - The document role.
cause - Cause of the exception.

Method Detail

getAccount

public final Account getAccount()
The account.
Returns:
the value of the property. This method will never return null.

getRole

public final DocumentRole getRole()
The document role.
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-01


Copyright © 2010, Oracle. All rights reserved.