1 15 package org.apache.hivemind.impl; 16 17 import org.apache.commons.logging.Log; 18 import org.apache.hivemind.ApplicationRuntimeException; 19 import org.apache.hivemind.ErrorHandler; 20 import org.apache.hivemind.Location; 21 22 29 public class StrictErrorHandler implements ErrorHandler 30 { 31 32 public void error(Log log, String message, Location location, Throwable cause) 33 { 34 String exceptionMessage = 35 location == null 36 ? ImplMessages.unlocatedError(message) 37 : ImplMessages.locatedError(location, message); 38 39 throw new ApplicationRuntimeException(exceptionMessage, location, cause); 40 } 41 42 } 43 | Popular Tags |