com.ibm.diameter.charging.exception
Class AvpTransformationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.ibm.diameter.charging.exception.AvpTransformationException
All Implemented Interfaces:
java.io.Serializable

public class AvpTransformationException
extends java.lang.RuntimeException

AvpTransformationException is thrown when a Grouped charging utility object cannot be transformed into an Avp because one of its members is in an incorrect format. It can also be thrown when a List of Avps cannot be transformed into a Grouped charging utility object because an Avp's value field is malformed.

Examples include Avp values that are not in the correct TIME and ADDRESS format, as defined in the RFC 3588 specification.

See Also:
Serialized Form

Constructor Summary
AvpTransformationException()
          Constructs an AvpTransformationException with no detail message or problem Avp.
AvpTransformationException(java.lang.String s, Avp problemAvp)
          Constructs an AvpTransformationException with the specified detail message and offending Avp.
AvpTransformationException(java.lang.String s, java.lang.Throwable cause, Avp problemAvp)
          Constructs an AvpTransformationException with the specified detail message, cause, and offending Avp.
 
Method Summary
 Avp getProblemAvp()
          Gets the Avp that caused the AvpTransformationException.
 void setProblemAvp(Avp problemAvp)
          Sets the Avp that caused the AvpTransformationException.
 
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

AvpTransformationException

public AvpTransformationException()
Constructs an AvpTransformationException with no detail message or problem Avp.


AvpTransformationException

public AvpTransformationException(java.lang.String s,
                                  Avp problemAvp)
Constructs an AvpTransformationException with the specified detail message and offending Avp.


AvpTransformationException

public AvpTransformationException(java.lang.String s,
                                  java.lang.Throwable cause,
                                  Avp problemAvp)
Constructs an AvpTransformationException with the specified detail message, cause, and offending Avp.

Method Detail

getProblemAvp

public Avp getProblemAvp()
Gets the Avp that caused the AvpTransformationException.

Returns:
the Avp that resulted in the AvpTransformationException.

setProblemAvp

public void setProblemAvp(Avp problemAvp)
Sets the Avp that caused the AvpTransformationException.

Parameters:
the - Avp that resulted in the AvpTransformationException.


Copyright © 2006 IBM Corp. All Rights Reserved.