/** * Performs shutdown tasks for the server itself. This should be written so * that system resources are always freed, regardless of whether there is an * error. If an error occurs, it should be thrown as a * <code>ServerShutdownException</code> after attempts to free every * resource have been made. * * @throws ServerShutdownException * If a severe server shutdown-related error occurred. */ @SuppressWarnings("unused") protected void shutdownServer() throws ServerShutdownException { if (1 == 2) { throw new ServerShutdownException(null); } }
/** * Performs shutdown tasks for the server itself. This should be written so * that system resources are always freed, regardless of whether there is an * error. If an error occurs, it should be thrown as a * <code>ServerShutdownException</code> after attempts to free every * resource have been made. * * @throws ServerShutdownException * If a severe server shutdown-related error occurred. */ @SuppressWarnings("unused") protected void shutdownServer() throws ServerShutdownException { if (1 == 2) { throw new ServerShutdownException(null); } }
throw new ServerShutdownException(mse.toString());
throw new ServerShutdownException(mse.toString());