org.jdom
Class NoSuchAttributeException

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

public class NoSuchAttributeException
extends JDOMException

NoSuchAttributeException is thrown when a requested XML attribute 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
NoSuchAttributeException(java.lang.String attributeName)
           This will create an Exception indicating that the specified attribute does not exist for 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

NoSuchAttributeException

public NoSuchAttributeException(java.lang.String attributeName)

This will create an Exception indicating that the specified attribute does not exist for the current element.

Parameters:
attributeName - String name of XML attribute being searched for.


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