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 CannotRemoveContextInstanceException

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

All Implemented Interfaces:
Serializable

public class CannotRemoveContextInstanceException
extends Exception

The context cannot be deleted. A context cannot be deleted if there are rights assigned with the context. This is restriction help prevents accidental context deletion.

The error message associated with this exception is:

IRM-01034: The context \"{0}\" cannot be deleted as there are rights assigned within this context.
See Also:
Serialized Form

Constructor Summary
CannotRemoveContextInstanceException(ContextInstance context)
          Constructor.
CannotRemoveContextInstanceException(ContextInstance context, Throwable cause)
          Constructor.

 

Method Summary
 ContextInstance getContext()
          The context 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

CannotRemoveContextInstanceException

public CannotRemoveContextInstanceException(ContextInstance context)
Constructor.
Parameters:
context - The context that cannot be deleted.

CannotRemoveContextInstanceException

public CannotRemoveContextInstanceException(ContextInstance context,
                                            Throwable cause)
Constructor.
Parameters:
context - The context that cannot be deleted.
cause - Cause of the exception.

Method Detail

getContext

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