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.Location; 20 21 27 public class DefaultErrorHandler implements ErrorHandler 28 { 29 30 public void error(Log log, String message, Location location, Throwable cause) 31 { 32 String output = 33 location == null 34 ? ImplMessages.unlocatedError(message) 35 : ImplMessages.locatedError(location, message); 36 37 log.error(output, cause); 38 39 } 40 41 } 42 | Popular Tags |