KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thoughtworks > xstream > converters > ErrorWriter


1 package com.thoughtworks.xstream.converters;
2
3 /**
4  * To aid debugging, some components are passed an ErrorWriter
5  * when things go wrong, allowing them to add information
6  * to the error message that may be helpful to diagnose problems.
7  *
8  * @author Joe Walnes
9  */

10 public interface ErrorWriter {
11
12     /**
13      * Add some information to the error message.
14      *
15      * @param name Something to identify the type of information (e.g. 'XPath').
16      * @param information Detail of the message (e.g. '/blah/moo[3]'
17      */

18     void add(String JavaDoc name, String JavaDoc information);
19
20 }
21
Popular Tags