org.springframework.batch.support
Interface ExceptionClassifier

All Known Implementing Classes:
BinaryExceptionClassifier, ExceptionClassifierSupport, SubclassExceptionClassifier

public interface ExceptionClassifier

Interface for a classifier of exceptions.

Author:
Dave Syer

Method Summary
 Object classify(Throwable throwable)
          Classify the given exception and return a non-null object.
 Object getDefault()
          Get a default value, normally the same as would be returned by classify(Throwable) with null argument.
 

Method Detail

getDefault

Object getDefault()
Get a default value, normally the same as would be returned by classify(Throwable) with null argument.

Returns:
the default value.

classify

Object classify(Throwable throwable)
Classify the given exception and return a non-null object. The return type depends on the implementation but typically would be a key in a map which the client maintains.

Parameters:
throwable - the input exception. Can be null.
Returns:
an object.


Copyright © 2009 SpringSource. All Rights Reserved.