public abstract class ExceptionConverterHelper extends java.lang.Object implements ExceptionConverter
ExceptionConverter
that automatically calls
the correct method defined on this object.
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(java.lang.Throwable t)
Attempt to convert the given throwable into a
CommandException . |
public void convert(java.lang.Throwable t) throws org.enginehub.piston.exception.CommandException
ExceptionConverter
CommandException
.
If the exception is not recognized, then nothing should be thrown.
convert
in interface ExceptionConverter
t
- the throwableorg.enginehub.piston.exception.CommandException
- a command exception