org.jdom
Class NoSuchElementException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.jdom.JDOMException
                    |
                    +--org.jdom.NoSuchElementException

public class NoSuchElementException
extends JDOMException

NoSuchElementException is thrown when a requested XML element is searched for and does not exist. This is in favor or a null return value which can cause program errors when used in comparisons, etc.

Version:
1.0
Author:
Brett McLaughlin, Jason Hunter
See Also:
Serialized Form

Fields inherited from class org.jdom.JDOMException
rootCause
 
Constructor Summary
NoSuchElementException(java.lang.String elementName)
           This will create an Exception indicating that the specified element does not exist nested directly (one level deep) within the current element.
 
Methods inherited from class org.jdom.JDOMException
getRootCause
 
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

NoSuchElementException

public NoSuchElementException(java.lang.String elementName)

This will create an Exception indicating that the specified element does not exist nested directly (one level deep) within the current element.

Note: This does not relate any indication of whether the requested element may be nested more than one level deep within the current element.

Parameters:
elementName - String name of XML element being searched for.


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