Interface ExceptionHandler
-
- All Known Implementing Classes:
IOExceptionHandler
public interface ExceptionHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<? extends Throwable>[]
getHandledExceptions()
Will be used to determine whether or not an exception is handled by this handler@Nullable String
parseError(Throwable throwable)
Parse an exception for more information Will not delve into the exception so ensure that root exception is passed in
-
-
-
Method Detail
-
getHandledExceptions
Class<? extends Throwable>[] getHandledExceptions()
Will be used to determine whether or not an exception is handled by this handler- Returns:
- an array of exception classes handled by this handler. Can be null or empty
-
parseError
@Nullable @Nullable String parseError(Throwable throwable)
Parse an exception for more information Will not delve into the exception so ensure that root exception is passed in- Parameters:
throwable
- exception to be parsed for further information, can be null- Returns:
- String error message to be displayed on screen, can be null if no error message to be displayed
-
-