Interface ExceptionHandler
- All Known Implementing Classes:
IOExceptionHandler
public interface ExceptionHandler
-
Method Summary
Modifier and TypeMethodDescriptionWill 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 Details
-
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
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
-