org.opengis.feature
Class IllegalAttributeException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by IllegalArgumentException
                  extended by IllegalAttributeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalAttributeException

public class IllegalAttributeException
extends IllegalArgumentException

Indicates a validation check has failed; the provided descriptor and value are available via this exception.

Since:
GeoAPI 2.2
Author:
Jody Garnett (Refractions Research, Inc.)
See Also:
Serialized Form

Constructor Summary
IllegalAttributeException(AttributeDescriptor descriptor, Object value)
           
IllegalAttributeException(AttributeDescriptor descriptor, Object value, String message)
           
IllegalAttributeException(AttributeDescriptor descriptor, Object value, String message, Throwable t)
           
IllegalAttributeException(AttributeDescriptor descriptor, Object value, Throwable t)
           
 
Method Summary
 AttributeDescriptor getDescriptor()
          AttribtueDescriptor being checked against.
 Object getValue()
          Attribute value that failed validation.
 String toString()
           
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalAttributeException

public IllegalAttributeException(AttributeDescriptor descriptor,
                                 Object value)

IllegalAttributeException

public IllegalAttributeException(AttributeDescriptor descriptor,
                                 Object value,
                                 String message)

IllegalAttributeException

public IllegalAttributeException(AttributeDescriptor descriptor,
                                 Object value,
                                 String message,
                                 Throwable t)

IllegalAttributeException

public IllegalAttributeException(AttributeDescriptor descriptor,
                                 Object value,
                                 Throwable t)
Method Detail

getDescriptor

public AttributeDescriptor getDescriptor()
AttribtueDescriptor being checked against.

Returns:
AttributeDescriptor being checked.

getValue

public Object getValue()
Attribute value that failed validation.

Returns:
Attribute value

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 1996-2014 Geotools. All Rights Reserved.