Skip navigation links

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

E12907-03


oracle.irm.engine.core.license
Class LicenseInUseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.irm.engine.core.license.LicenseInUseException

All Implemented Interfaces:
Serializable

public class LicenseInUseException
extends Exception

A license or licenses is in use on another device or devices. When a client requests a set of licenses the applicable licenses may be checked out to one or more devices. If no other licenses are available, this exception will be thrown informing the caller of the devices that are using the licenses.

The error message associated with this exception is:

IRM-01025: Licenses are available, but are on the following device(s): {0}.
See Also:
Serialized Form

Constructor Summary
LicenseInUseException(Collection<Device> devices)
          Constructor.
LicenseInUseException(Collection<Device> devices, Throwable cause)
          Constructor.

 

Method Summary
 Collection<Device> getDevices()
          The list of devices the licenses are being used.

 

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

LicenseInUseException

public LicenseInUseException(Collection<Device> devices)
Constructor.
Parameters:
devices - The list of devices the licenses are being used.

LicenseInUseException

public LicenseInUseException(Collection<Device> devices,
                             Throwable cause)
Constructor.
Parameters:
devices - The list of devices the licenses are being used.
cause - Cause of the exception.

Method Detail

getDevices

public final Collection<Device> getDevices()
The list of devices the licenses are being used.

State

The collection returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. If this collection is empty this method returns an empty collection rather than returning 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.