public abstract class ExceptionConverterHelper extends Object implements ExceptionConverter
ExceptionConverter that calls methods
defined in subclasses that have been annotated with
ExceptionMatch.
Only public methods will be used. Methods will be called in order of decreasing levels of inheritance (between classes where one inherits the other). For two different inheritance branches, the order between them is undefined.
| Constructor and Description |
|---|
ExceptionConverterHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
convert(Throwable t)
Attempt to convert the given throwable into a friendly
CommandException. |
public void convert(Throwable t) throws CommandException
ExceptionConverterCommandException.
If the exception is not recognized, then
InvocationCommandException should be thrown to wrap the exception.
convert in interface ExceptionConvertert - the throwableCommandException - a command exceptionCopyright © 2015. All Rights Reserved.