PdxFieldTypeMismatchException (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.pdx, class: PdxFieldTypeMismatchException

Package org.apache.geode.pdx

# Class PdxFieldTypeMismatchException

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

All Implemented Interfaces:
  `Serializable`

public class PdxFieldTypeMismatchException extends GemFireException
Thrown if the type of a PDX field was changed or the wrong type was used. PDX field types can not be changed. New fields can be added. Existing fields can be removed. But once a field is added its type can not be changed. The writeXXX methods on `PdxWriter` define the field type.

This exception can also be caused by `setField` trying to set a value whose type is not compatible with the field.

Since:
  GemFire 6.6
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PdxFieldTypeMismatchException(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 Details

  - ### PdxFieldTypeMismatchException

    public PdxFieldTypeMismatchException(String message)
    Constructs a new exception with the given message
    Parameters:
      `message` - the message of the new exception