org.apache.tika.metadata
Class PropertyTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.apache.tika.metadata.PropertyTypeException
All Implemented Interfaces:
Serializable

public final class PropertyTypeException
extends IllegalArgumentException

XMP property definition violation exception. This is thrown when you try to set a Property value with an incorrect type, such as storing an Integer when the property is of type Date.

Since:
Apache Tika 0.8
See Also:
Serialized Form

Constructor Summary
PropertyTypeException(Property.PropertyType expected, Property.PropertyType found)
           
PropertyTypeException(Property.ValueType expected, Property.ValueType found)
           
 
Method Summary
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyTypeException

public PropertyTypeException(Property.PropertyType expected,
                             Property.PropertyType found)

PropertyTypeException

public PropertyTypeException(Property.ValueType expected,
                             Property.ValueType found)


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.