net.spy.digg.parsers
Class ErrorParser

java.lang.Object
  extended by net.spy.digg.parsers.BaseParser
      extended by net.spy.digg.parsers.ErrorParser

public class ErrorParser
extends BaseParser

Parse a single error.


Constructor Summary
ErrorParser()
           
 
Method Summary
 int getErrorId()
          Get the error ID.
 java.lang.String getErrorMessage()
          Get the error message.
protected  java.lang.String getRootElementName()
          Get the name of the expected root element.
protected  void handleDocument(org.w3c.dom.Document doc)
          Delegated document parsing.
 
Methods inherited from class net.spy.digg.parsers.BaseParser
getAttr, getAttr, getDocument, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorParser

public ErrorParser()
Method Detail

getRootElementName

protected java.lang.String getRootElementName()
Description copied from class: BaseParser
Get the name of the expected root element.

Specified by:
getRootElementName in class BaseParser

handleDocument

protected void handleDocument(org.w3c.dom.Document doc)
                       throws org.xml.sax.SAXException,
                              java.io.IOException
Description copied from class: BaseParser
Delegated document parsing.

Specified by:
handleDocument in class BaseParser
Throws:
org.xml.sax.SAXException
java.io.IOException

getErrorId

public int getErrorId()
Get the error ID.


getErrorMessage

public java.lang.String getErrorMessage()
Get the error message.