Class EPPCodecException

All Implemented Interfaces:
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:
  • Field Details

    • VALUE_UNDEFINED

      public static final int VALUE_UNDEFINED
      Constant value for generic / undefined value of exception
      See Also:
    • VALUE_MISSINGPARAMETER

      public static final int VALUE_MISSINGPARAMETER
      Constant value for missing parameter exception
      See Also:
    • VALUE_SAX_EXCEPTION

      public static final int VALUE_SAX_EXCEPTION
      Constant value for SAX XML exception
      See Also:
    • 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 Details

    • EPPCodecException

      public EPPCodecException(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, String aInfo)
      Constructs a new EPPCodecException instance.
      Parameters:
      aValue - The unique value of this instance.
      aInfo - Text description of the exception.
    • EPPCodecException

      public EPPCodecException(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 Details

    • equals

      public boolean equals(Object obj)
      Returns true if the passed in EPPCodecException instances equals this instance.
      Overrides:
      equals in class 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