org.apache.openjpa.persistence.jest
Class ExceptionFormatter

java.lang.Object
  extended by org.apache.openjpa.persistence.jest.XMLFormatter
      extended by org.apache.openjpa.persistence.jest.ExceptionFormatter
All Implemented Interfaces:
ObjectFormatter<Document>

 class ExceptionFormatter
extends XMLFormatter

Formats error stack trace.

Author:
Pinaki Poddar

Field Summary
 
Fields inherited from class org.apache.openjpa.persistence.jest.XMLFormatter
_loc, _xsd
 
Fields inherited from interface org.apache.openjpa.persistence.jest.ObjectFormatter
dateFormat
 
Constructor Summary
ExceptionFormatter()
           
 
Method Summary
 Document createXML(String header, Throwable e)
          Creates a XML Document with given header and stack trace of the given error.
 
Methods inherited from class org.apache.openjpa.persistence.jest.XMLFormatter
decorate, encode, encode, getMimeType, ior, newDocument, typeOf, typeOf, typeOf, typeOf, typeOf, validate, write, write, writeOut, writeOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionFormatter

ExceptionFormatter()
Method Detail

createXML

public Document createXML(String header,
                          Throwable e)
Creates a XML Document with given header and stack trace of the given error.

Parameters:
header -
e -


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.