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 LicenseUnavailableException

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

All Implemented Interfaces:
Serializable

public class LicenseUnavailableException
extends Exception

One or more licenses is unavailable for use. When a client requests a set of licenses, licenses may exist but be unusable for the specified classification. For example, if the requested feature is not supported by the license. If no other licenses are available, this exception will be thrown informing the caller why the license or licenses are cannot be used.

The error message associated with this exception is:

IRM-01080: Licenses are available, but they cannot be used for the following reasons: {0}.
See Also:
Serialized Form

Constructor Summary
LicenseUnavailableException(Collection<LicenseStatus> licenses)
          Constructor.
LicenseUnavailableException(Collection<LicenseStatus> licenses, Throwable cause)
          Constructor.

 

Method Summary
 Collection<LicenseStatus> getLicenses()
          The list of licenses and the reasons why the licenses cannot be 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

LicenseUnavailableException

public LicenseUnavailableException(Collection<LicenseStatus> licenses)
Constructor.
Parameters:
licenses - The list of licenses and the reasons why the licenses cannot be used.

LicenseUnavailableException

public LicenseUnavailableException(Collection<LicenseStatus> licenses,
                                   Throwable cause)
Constructor.
Parameters:
licenses - The list of licenses and the reasons why the licenses cannot be used.
cause - Cause of the exception.

Method Detail

getLicenses

public final Collection<LicenseStatus> getLicenses()
The list of licenses and the reasons why the licenses cannot be 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.