Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.thoughtworks.xstream.converters
Interface ErrorWriter

All Known Implementing Classes:
  AbstractReflectionConverter.DuplicateFieldException, ConversionException, JavaBeanConverter.DuplicateFieldException

    public interface ErrorWriter

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.

Author:
  Joe Walnes, Jörg Schaible

Method Summary
`void` | `add(String name, String information)` Add some information to the error message.
`String` | `get(String errorKey)` Retrieve information of the error message.
`Iterator` | `keys()` Retrieve an iterator over all keys of the error message.

Method Detail

### add

    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]'

### get

    String get(String errorKey)

  Retrieve information of the error message.

  Parameters:
    `errorKey` - the key of the message
  Returns:
    the value
  Since:
    1.3

### keys

    Iterator keys()

  Retrieve an iterator over all keys of the error message.

  Returns:
    an Iterator
  Since:
    1.3

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 XStream. All Rights Reserved.