DimDom v0.8.2

org.alltimeflashdreamer.dimdom.websitetester
Class ErrorSiteProcessor

java.lang.Object
  |
  +--org.alltimeflashdreamer.dimdom.websitetester.ErrorSiteProcessor

class ErrorSiteProcessor
extends Object

Title: ErrorSiteProcessor
Description: This class generates the error output site, in case an error came up somewhere and needs to be shown to the user. Therefore, it passes the error site template (which is hard-coded string) and the appropriately filled XHTMLSiteData instance to the DimDom engine which then produces the error site output.


Field Summary
(package private)  Exception ex
          Description of the Field
(package private)  int iErrorCode
          Description of the Field
(package private) static int INPUTPARSERERROR
          code describing the error during parsing of the XHTML source/input
(package private) static int MISSINGINPUTERROR
          code describing that no XHTML input string was found/given through the tester web site
(package private) static int MISSINGPROCESSORCLASSERROR
          code describing that the given processor class wasn't found
(package private) static int PROPERTYFILEERROR
          code describing the error during finding/reading of the property file
(package private) static int SITEDATAERROR
          code describing that an error occurred during fill-in of the dynamic data into the DimDom command objects
(package private) static int SITEPRINTERROR
          code describing that an error occurred during printing out of the dynamically updated Document object
 
Constructor Summary
(package private) ErrorSiteProcessor(int iErrorCode, Exception ex)
          Simply stores the given parameters, for later processing.
 
Method Summary
(package private)  String print()
          Builds the error site output and calls the print method of the DimDom class to get the fully formatted, dynamically filled XHTML string.
If somehow this class itself runs into troubles, it wraps them into an IOException.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTYFILEERROR

static final int PROPERTYFILEERROR
code describing the error during finding/reading of the property file

MISSINGINPUTERROR

static final int MISSINGINPUTERROR
code describing that no XHTML input string was found/given through the tester web site

INPUTPARSERERROR

static final int INPUTPARSERERROR
code describing the error during parsing of the XHTML source/input

SITEDATAERROR

static final int SITEDATAERROR
code describing that an error occurred during fill-in of the dynamic data into the DimDom command objects

SITEPRINTERROR

static final int SITEPRINTERROR
code describing that an error occurred during printing out of the dynamically updated Document object

MISSINGPROCESSORCLASSERROR

static final int MISSINGPROCESSORCLASSERROR
code describing that the given processor class wasn't found

iErrorCode

int iErrorCode
Description of the Field

ex

Exception ex
Description of the Field
Constructor Detail

ErrorSiteProcessor

ErrorSiteProcessor(int iErrorCode,
                   Exception ex)
Simply stores the given parameters, for later processing.
Parameters:
iErrorCode - which error shall be shown?
ex - the exception that occurred (may be null)
Method Detail

print

String print()
       throws ServletException
Builds the error site output and calls the print method of the DimDom class to get the fully formatted, dynamically filled XHTML string.
If somehow this class itself runs into troubles, it wraps them into an IOException.
Returns:
the fully formatted XHTML string
Throws:
ServletException - if the processor itself suffers from some exception...

Copyright (c) 2001/02 by Florian Steinsiepe