| Notifying Generator 
 
    The notifying generator creates XML content describing an error condition.
    When an error occurs in a pipeline with a defined error handler, the
    sitemap manager activates the notifying generator, feeding it the cause of
    the error.
   
 
DTD
    
Name : <notifier>
Class: org.apache.cocoon.sitemap.NotifyingGenerator
Cacheable: No.
Mode: Sitemap internal
 
 
    XML generated by notifying generator uses the 
    namespace http://apache.org/cocoon/error/2.0and
    theerrorprefix. 
    Usually the error condition is described by a throwable object.
    The information of this throwable object is used by the
    error generator to produce the xml content.
    The various elements of the xml content include the following.
   
 
    
     The element notifyis the root element, having
     attributestypeandsender.
     The attributetypehas fixed valueerror.
     The attributesenderdescribes the sender of the
     error notification object.
     The element titlestores the title of the eror notification.
     In the current implementation, it has fixed valueCocoon error.
     The sourceelement stores the class name of the throwable object
     of the error notification.
     The messageelement stores thegetMessage()result 
     of the throwable object of the error notification, and may be empty.
     The descriptionelement stores thetoString()result 
     of the throwable object of the error notification.
     Optional extraelements stores nested exceptions
     of the throwable object of the error notification. 
Example
|  |  |  |  
|  | 
<!ELEMENT notify (title, source, message, description, extra*)>
<!ATTLIST notiy 
  type CDATA #REQUIRED
  sender CDATA #REQUIRED
>
<!ELEMENT title #PCDATA>
<!ELEMENT source #PCDATA>
<!ELEMENT message #PCDATA>
<!ELEMENT description #PCDATA>
<!ELEMENT extra #PCDATA>
<!ATTLIST extra description #CDATA>
<!ELEMENT statusinfo (group|value)*>
 |  |  
|  |  |  |  
 
    The following example outputs the xml content of 
    an error generator:
   
 
|  |  |  |  
|  | 
<?xml version="1.0"
 xmlns:error="http://apache.org/cocoon/error/2.0
 encoding="UTF-8"?>
 
<error:notify
  error:type="error" 
  error:sender="org.apache.cocoon.servlet.CocoonServlet">
 
  <error:title>Cocoon error</error:title>
  <error:source>java.lang.NullPointerException</error:source>
  <error:message></error:message>
  <error:description></error:description>
  <error:extra description=""></error:extra>
</error:notify>
 |  |  
|  |  |  |  |