com.verisign.epp.codec.gen
Class EPPCodecException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.verisign.epp.exception.EPPException
              extended by com.verisign.epp.codec.gen.EPPCodecException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EPPDecodeException, EPPDuplicateExtensionException, EPPEncodeException

public class EPPCodecException
extends EPPException

Represents a general EPP Codec Exception. This exception supports for a limited form of exception value types without the need for subclassing.

See Also:
Serialized Form

Field Summary
static EPPCodecException MISSINGPARAMETER
          The typesafe constant MISSINGPARAMETER defines the instance of EPPCodecException that should be thrown for missing input parameters.
static EPPCodecException SAX_EXCEPTION
          The typesafe constant SAX_EXCEPTION defines the instance of EPPCodecException that should be thrown for SAX XML parse exceptions.
static int VALUE_MISSINGPARAMETER
          Constant value for missing parameter exception
static int VALUE_SAX_EXCEPTION
          Constant value for SAX XML exception
static int VALUE_UNDEFINED
          Constant value for generic / undefined value of exception
 
Constructor Summary
EPPCodecException(int aValue)
          Constructs a new EPPCodecException instance.
EPPCodecException(int aValue, java.lang.String aInfo)
          Constructs a new EPPCodecException instance.
EPPCodecException(java.lang.String aInfo)
          Constructor for EPPCodecException that takes an info string.
EPPCodecException(java.lang.String aInfo, EPPCodecException ex)
          Constructs a new EPPCodecException instance
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if the passed in EPPCodecException instances equals this instance.
 int getValue()
          Returns the value of the EPPCodecException instance.
 
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_UNDEFINED

public static final int VALUE_UNDEFINED
Constant value for generic / undefined value of exception

See Also:
Constant Field Values

VALUE_MISSINGPARAMETER

public static final int VALUE_MISSINGPARAMETER
Constant value for missing parameter exception

See Also:
Constant Field Values

VALUE_SAX_EXCEPTION

public static final int VALUE_SAX_EXCEPTION
Constant value for SAX XML exception

See Also:
Constant Field Values

MISSINGPARAMETER

public static final EPPCodecException MISSINGPARAMETER
The typesafe constant MISSINGPARAMETER defines the instance of EPPCodecException that should be thrown for missing input parameters.


SAX_EXCEPTION

public static final EPPCodecException SAX_EXCEPTION
The typesafe constant SAX_EXCEPTION defines the instance of EPPCodecException that should be thrown for SAX XML parse exceptions.

Constructor Detail

EPPCodecException

public EPPCodecException(java.lang.String aInfo)
Constructor for EPPCodecException that takes an info string.

Parameters:
aInfo - Text description of the exception.

EPPCodecException

public EPPCodecException(int aValue)
Constructs a new EPPCodecException instance.

Parameters:
aValue - The unique value of this instance using one of the VALUE constants.

EPPCodecException

public EPPCodecException(int aValue,
                         java.lang.String aInfo)
Constructs a new EPPCodecException instance.

Parameters:
aValue - The unique value of this instance.
aInfo - Text description of the exception.

EPPCodecException

public EPPCodecException(java.lang.String aInfo,
                         EPPCodecException ex)
Constructs a new EPPCodecException instance

Parameters:
aInfo - Information that can be included with the EPPCodecException
ex - An instance of an EPPCodecException. This should be one of the static instances defined in EPPCodecException.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Returns true if the passed in EPPCodecException instances equals this instance.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the exception to be
Returns:
boolean True if the two EPPAssemblerException have the same value.

getValue

public int getValue()
Returns the value of the EPPCodecException instance. The value should match one of the VALUE constants.

Returns:
One of the VALUE constants


Copyright © VeriSign Inc. All Rights Reserved.