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 IllegalArgumentLengthException

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.IllegalArgumentLengthException

All Implemented Interfaces:
Serializable

public class IllegalArgumentLengthException
extends IllegalArgumentException

An invalid value has been passed as a method argument. The value exceeds the permitted length.

The error message associated with this exception is:

IRM-01079: The parameter {1} passed into {0} cannot exceed {4} characters in length. The invalid value provided was {2} which has {3} characters.
See Also:
Serialized Form

Constructor Summary
IllegalArgumentLengthException(String method, String name, Object value, int length, int maximum)
          Constructor.
IllegalArgumentLengthException(String method, 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 getMethod()
          The method name.
 String getName()
          The parameter 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

IllegalArgumentLengthException

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

IllegalArgumentLengthException

public IllegalArgumentLengthException(String method,
                                      String name,
                                      Object value,
                                      int length,
                                      int maximum,
                                      Throwable cause)
Constructor.
Parameters:
method - 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

getMethod

public final String getMethod()
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.