/** * Called whenever the user tries to access an page to which he doesn't have access, and we need to reveal the * user-defined unauthorized place. This method will detect infinite reveal loops and throw an {@link * RuntimeException} in that case. * * @param historyToken The history token that was not recognised. */ private void illegalAccess(String historyToken) { startError(); revealUnauthorizedPlace(historyToken); stopError(); }
/** * Called whenever an error occurred that requires the error page to be shown to the user. This method will detect * infinite reveal loops and throw an {@link RuntimeException} in that case. * * @param invalidHistoryToken The history token that was not recognised. */ private void error(String invalidHistoryToken) { startError(); revealErrorPlace(invalidHistoryToken); stopError(); }