1 21 22 package org.apache.derby.impl.services.monitor; 23 24 import org.apache.derby.iapi.services.context.ContextManager; 25 import org.apache.derby.iapi.services.context.ContextImpl; 26 import org.apache.derby.iapi.error.ExceptionSeverity; 27 28 32 final class ServiceBootContext extends ContextImpl { 33 34 ServiceBootContext(ContextManager cm) { 35 super(cm, "ServiceBoot"); 36 } 37 38 public void cleanupOnError(Throwable t) { 39 popMe(); 40 } 41 42 public boolean isLastHandler(int severity) 43 { 44 return (severity == ExceptionSeverity.NO_APPLICABLE_SEVERITY) || 45 (severity == ExceptionSeverity.DATABASE_SEVERITY) || 46 (severity == ExceptionSeverity.SYSTEM_SEVERITY); 47 } 48 } 49 | Popular Tags |