Skip navigation links

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

E12907-03


oracle.irm.engine.system.general
Class IllegalPropertyLengthException

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.system.general.IllegalPropertyLengthException

All Implemented Interfaces:
Serializable

public class IllegalPropertyLengthException
extends IllegalArgumentException

A property value has exceeded the maximum permitted length. The value exceeds the permitted length.

The error message associated with this exception is:

IRM-01064: The {0} {1} property cannot exceed {4} characters in length. The invalid value provided was {2}, which has {3} characters.
See Also:
Serialized Form

Constructor Summary
IllegalPropertyLengthException(String object, String name, Object value, int length, int maximum)
          Constructor.
IllegalPropertyLengthException(String object, String name, Object value, int length, int maximum, Throwable cause)
          Constructor.

 

Method Summary
 int getLength()
          The value's length.
 int getMaximum()
          The maximum permitted length.
 String getName()
          The parameter name.
 String getObject()
          The method name.
 Object getValue()
          The invalid value.

 

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

IllegalPropertyLengthException

public IllegalPropertyLengthException(String object,
                                      String name,
                                      Object value,
                                      int length,
                                      int maximum)
Constructor.
Parameters:
object - The method name.
name - The parameter name.
value - The invalid value.
length - The value's length.
maximum - The maximum permitted length.

IllegalPropertyLengthException

public IllegalPropertyLengthException(String object,
                                      String name,
                                      Object value,
                                      int length,
                                      int maximum,
                                      Throwable cause)
Constructor.
Parameters:
object - The method name.
name - The parameter name.
value - The invalid value.
length - The value's length.
maximum - The maximum permitted length.
cause - Cause of the exception.

Method Detail

getObject

public final String getObject()
The method name.
Returns:
the value of the property. This method will never return null.

getName

public final String getName()
The parameter name.
Returns:
the value of the property. This method will never return null.

getValue

public final Object getValue()
The invalid value.
Returns:
the value of the property. This method will never return null.

getLength

public final int getLength()
The value's length.
Returns:
the value of the property.

getMaximum

public final int getMaximum()
The maximum permitted length.
Returns:
the value of the property.

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.