org.jdom
Class IllegalAddException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IllegalArgumentException
                          |
                          +--org.jdom.IllegalAddException

public class IllegalAddException
extends java.lang.IllegalArgumentException

IllegalAddException is thrown when an Element or Attribute is added to a JDOM construct illegally..

Version:
1.0
Author:
Brett McLaughlin
See Also:
Serialized Form

Constructor Summary
IllegalAddException(Document base, Element added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Element supplied as a child of the document is not allowed.
IllegalAddException(Element base, Attribute added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Attribute supplied to the Element supplied is illegal.
IllegalAddException(Element base, Element added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Element supplied as a child of the supplied parent is not allowed.
IllegalAddException(java.lang.String reason)
           This will create an Exception with the specified error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalAddException

public IllegalAddException(Element base,
                           Attribute added,
                           java.lang.String reason)

This will create an Exception indicating that the addition of the Attribute supplied to the Element supplied is illegal.

Parameters:
base - Element that Attribute couldn't be added to
added - Attribute that could not be added

IllegalAddException

public IllegalAddException(Element base,
                           Element added,
                           java.lang.String reason)

This will create an Exception indicating that the addition of the Element supplied as a child of the supplied parent is not allowed.

Parameters:
base - Element that the child couldn't be added to
added - Element that could not be added

IllegalAddException

public IllegalAddException(Document base,
                           Element added,
                           java.lang.String reason)

This will create an Exception indicating that the addition of the Element supplied as a child of the document is not allowed.


IllegalAddException

public IllegalAddException(java.lang.String reason)

This will create an Exception with the specified error message.



Copyright © 2000 Brett McLaughlin, Jason Hunter. All Rights Reserved.