1 15 package org.apache.hivemind.impl; 16 17 import org.apache.commons.logging.Log; 18 import org.apache.hivemind.ErrorHandler; 19 import org.apache.hivemind.ErrorLog; 20 import org.apache.hivemind.Location; 21 22 26 public class ErrorLogImpl implements ErrorLog 27 { 28 private ErrorHandler _errorHandler; 29 30 private Log _log; 31 32 public ErrorLogImpl(ErrorHandler errorHandler, Log log) 33 { 34 _errorHandler = errorHandler; 35 _log = log; 36 } 37 38 public void error(String message, Location location, Throwable cause) 39 { 40 _errorHandler.error(_log, message, location, cause); 41 } 42 43 } | Popular Tags |