public interface

ErrorWriter

com.thoughtworks.xstream.converters.ErrorWriter
Known Indirect Subclasses

Class Overview

To aid debugging, some components are passed an ErrorWriter when things go wrong, allowing them to add information to the error message that may be helpful to diagnose problems.

Summary

Public Methods
abstract void add(String name, String information)
Add some information to the error message.
abstract String get(String errorKey)
Retrieve information of the error message.
abstract Iterator keys()
Retrieve an iterator over all keys of the error message.

Public Methods

public abstract void add (String name, String information)

Add some information to the error message.

Parameters
name something to identify the type of information (e.g. 'XPath').
information detail of the message (e.g. '/blah/moo[3]'

public abstract String get (String errorKey)

Retrieve information of the error message.

Parameters
errorKey the key of the message
Returns
  • the value

public abstract Iterator keys ()

Retrieve an iterator over all keys of the error message.

Returns
  • an Iterator