org.apache.geode.pdx

## Class PdxFieldAlreadyExistsException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.apache.geode.GemFireException
        - - org.apache.geode.pdx.PdxFieldAlreadyExistsException

- All Implemented Interfaces:
    java.io.Serializable

      public class PdxFieldAlreadyExistsException
      extends GemFireException

  Thrown when writing a field if the named field already exists.

  This is usually caused by the same field name being written more than once.

  It can also be caused by a field name being spelled one way when written and a different way when read. Field names are case sensitive.

  It can also be caused by `writeUnreadFields` being called after a field is written.

  Since:
    GemFire 6.6
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PdxFieldAlreadyExistsException(java.lang.String message)` Constructs a new exception with the given message.

  - ### Method Summary

    - ### Methods inherited from class org.apache.geode.GemFireException

      `getRootCause`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

    - #### PdxFieldAlreadyExistsException

          public PdxFieldAlreadyExistsException(java.lang.String message)

      Constructs a new exception with the given message.
      Parameters:
        `message` - the message of the new exception