public abstract class ExceptionHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashSet<String> |
exceptionCaught
List of caught exceptions.
|
protected boolean |
ignoreExceptions
If true exceptions will be ignored.
|
| Constructor and Description |
|---|
ExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
catchException(Exception e)
Catches an exception and informs the user.
|
static String |
getExceptionType(Exception e)
Returns the exception type.
|
protected abstract void |
notifyUser(Exception e)
Notifies the user that an exception was caught.
|
void |
setIgnoreExceptions(boolean ignoreExceptions)
Sets whether exceptions should be ignored.
|
protected boolean ignoreExceptions
public void catchException(Exception e)
e - the exception caughtprotected abstract void notifyUser(Exception e)
e - the exception to catchpublic static String getExceptionType(Exception e)
e - the exception to get the type fropublic void setIgnoreExceptions(boolean ignoreExceptions)
ignoreExceptions - if true exceptions will be ignoredCopyright © 2016. All rights reserved.