1 20 21 package golfShop.presentation.xmlc; 22 23 import org.enhydra.xml.xmlc.*; 24 import org.enhydra.xml.xmlc.html.*; 25 import com.lutris.logging.*; 26 import com.lutris.appserver.server.*; 27 import com.lutris.appserver.server.httpPresentation.*; 28 import org.w3c.dom.*; 29 import golfShop.presentation.xmlc.utilities.*; 30 31 35 public class ErrorHandler implements HttpPresentation { 36 39 public void run(HttpPresentationComms comms) 40 throws HttpPresentationException { 41 42 LogChannel chan = Enhydra.getLogChannel(); 43 chan.write(Logger.ERROR, "application error", comms.exception); 44 ErrorHandlerHTML htmlObj = (ErrorHandlerHTML)comms.xmlcFactory.create(ErrorHandlerHTML.class); 45 comms.response.writeDOM(htmlObj); 46 } 47 } 48 | Popular Tags |