org.geotools.renderer.geom
Class UnmodifiableGeometryException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalStateException
                  extended byorg.geotools.renderer.geom.UnmodifiableGeometryException
All Implemented Interfaces:
java.io.Serializable

public class UnmodifiableGeometryException
extends java.lang.IllegalStateException

Throws when an attempt is made to modify a geometry, but this geometry is part of an other geometry. For example the geometry may be a hole in a Polygon, or a geometry in a GeometryCollection. Attempt to change those geometries may corrupt the container, which is why they are not allowed. This exception may be thrown by the following methods:



If this exception is thrown, the workaround is to clone the geometry before to invokes one of the above methods.

Version:
$Id: UnmodifiableGeometryException.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Constructor Summary
UnmodifiableGeometryException()
          Construct an exception with an empty message.
UnmodifiableGeometryException(java.util.Locale locale)
          Construct an exception with a "Unmodifiable geometry" message in the given locale.
UnmodifiableGeometryException(java.lang.String message)
          Construct an exception with the specified message.
 
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

UnmodifiableGeometryException

public UnmodifiableGeometryException()
Construct an exception with an empty message.


UnmodifiableGeometryException

public UnmodifiableGeometryException(java.lang.String message)
Construct an exception with the specified message.


UnmodifiableGeometryException

public UnmodifiableGeometryException(java.util.Locale locale)
Construct an exception with a "Unmodifiable geometry" message in the given locale.

Parameters:
locale - The locale, or null for a default one.


Copyright © GeoTools. All Rights Reserved.