Class AdfException.ValueTypeMismatch

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    AdfException

    public static class AdfException.ValueTypeMismatch
    extends AdfException.PropertyException
    Thrown to indicate that a particular value could not be extracted from a field or attribute because it was not of the correct type.

    Note that this exception is only used for a few special cases where explicit checking of the type was required. In most cases, a value of the wrong type will just throw a ClassCastException, instead.

    See Also:
    Serialized Form
    • Constructor Detail

      • ValueTypeMismatch

        public ValueTypeMismatch​(String propertyName,
                                 String expectedType,
                                 String actualType)
    • Method Detail

      • expectedType

        public String expectedType()
      • actualType

        public String actualType()