我有此代码
public void handleError(final Throwable t) {
final String logMessage = String.format(ERROR_MESSAGE, OperatingEmptyWeightErrorHandler.class.getName(),
t.getMessage());
LogConstants.LOGGER_SERVICE.error(logMessage, t);
if (t instanceof OEWTransactionException || t instanceof DataAccessException) {
itopsLoggerImpl.logError(logMessage, t.getMessage());
}
}
如何实现访客模式?