Examples of ExceptionHandler


Examples of reactor.jarjar.com.lmax.disruptor.ExceptionHandler

            if(ref.getReferenceCount() > 0) {
              ref.release();
            }
          }
        } : null),
        (null != errorHandler ? new ExceptionHandler() {
          @Override
          public void handleEventException(Throwable ex, long sequence, Object event) {
            errorHandler.accept(ex);
          }
View Full Code Here

Examples of serp.bytecode.ExceptionHandler

        // }
        code.getstatic().setField(type);

        Collection jumps = new LinkedList();
        jumps.add(code.ifnonnull());
        ExceptionHandler handler = code.addExceptionHandler();

        handler.setTryStart(code.constant().setValue
            (meta.getDescribedType().getName()));
        code.constant().setValue(true);
        code.invokestatic().setMethod(Thread.class, "currentThread",
            Thread.class, null);
        code.invokevirtual().setMethod(Thread.class, "getContextClassLoader",
            ClassLoader.class, null);
        code.invokestatic().setMethod(Class.class, "forName", Class.class,
            new Class[]{ String.class, boolean.class, ClassLoader.class });
        code.putstatic().setField(type);
        Instruction go2 = code.go2();
        jumps.add(go2);
        handler.setTryEnd(go2);
        handler.setCatch(ClassNotFoundException.class);
        handler.setHandlerStart(throwException
            (code, InternalException.class));
        setTarget(code.getstatic().setField(type), jumps);
        code.areturn();

        code.calculateMaxStack();
View Full Code Here

Examples of sortpom.exception.ExceptionHandler

                    .setVerifyFail(verifyFail)
                    .createPluginParameters();

            sortPomImpl.setup(new MavenLogger(getLog()), pluginParameters);
        } catch (FailureException fex) {
            new ExceptionHandler(fex).throwMojoFailureException();
        }
    }
View Full Code Here

Examples of st.gravel.support.jvm.runtime.ExceptionStack.ExceptionHandler

public class ExceptionExtensions {

  public static Object on_do_(Block0<Object> receiver,
      Object exceptionSelector, Object exBlock) {
    Object marker = new Object();
    ExceptionHandler handler = ExceptionStack.addHandler(receiver,
        exceptionSelector, exBlock, marker);
    try {
      return receiver.value();
    } catch (NonLocalReturn nlr) {
      if (nlr.marker == marker) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.