org.tm4j.topicmap
Class DuplicateResourceLocatorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.tm4j.topicmap.TopicMapProcessingException
              extended byorg.tm4j.topicmap.DuplicateResourceLocatorException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateResourceLocatorException
extends TopicMapProcessingException

Exception thrown when the system detects an attempt to add a new topic map object with the same resource location as an existing topic map object. To avoid this error, the existing object must be destroyed prior to attempting to add the new object.

Author:
Kal Ahmed, Harald Kuhn
See Also:
Serialized Form

Constructor Summary
DuplicateResourceLocatorException()
           
DuplicateResourceLocatorException(java.lang.Exception cause)
           
DuplicateResourceLocatorException(Locator duplicatedLocator)
          Constructs an exception with a default message reporting the duplicate locator's notation and address strings.
DuplicateResourceLocatorException(java.lang.String msg)
           
DuplicateResourceLocatorException(java.lang.String msg, java.lang.Exception cause)
           
 
Methods inherited from class org.tm4j.topicmap.TopicMapProcessingException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

DuplicateResourceLocatorException

public DuplicateResourceLocatorException()

DuplicateResourceLocatorException

public DuplicateResourceLocatorException(java.lang.String msg)

DuplicateResourceLocatorException

public DuplicateResourceLocatorException(Locator duplicatedLocator)
Constructs an exception with a default message reporting the duplicate locator's notation and address strings.

Parameters:
duplicatedLocator - the locator which is duplicated in an existing topic map object.

DuplicateResourceLocatorException

public DuplicateResourceLocatorException(java.lang.Exception cause)

DuplicateResourceLocatorException

public DuplicateResourceLocatorException(java.lang.String msg,
                                         java.lang.Exception cause)