/** * Default behaviour for handling a command execution exception. Shows an exception report to the user. * * @param response * command response with error */ public void onCommandException(CommandResponse response) { if (isShowError()) { commandExceptionCallback.onCommandException(response); } }
/** * Default behaviour for handling a communication exception. Shows a warning window to the user. * * @param error * error to report */ public void onCommunicationException(Throwable error) { if (isShowError()) { communicationExceptionCallback.onCommunicationException(error); } }