Examples of SubscriberExceptionHandler


Examples of com.google.common.eventbus.SubscriberExceptionHandler

    protected EventBus newEventBus() {
        return new EventBus(newEventBusSubscriberExceptionHandler());
    }

    protected SubscriberExceptionHandler newEventBusSubscriberExceptionHandler() {
        return new SubscriberExceptionHandler(){
            @Override
            public void handleException(Throwable exception, SubscriberExceptionContext context) {
                if(exception instanceof RecoverableException ||
                   exception instanceof NonRecoverableException) {
                    getTransactionManager().getTransaction().setAbortCause(new IsisApplicationException(exception));
View Full Code Here

Examples of com.google.common.eventbus.SubscriberExceptionHandler

    protected EventBus newEventBus() {
        return new EventBus(newEventBusSubscriberExceptionHandler());
    }

    protected SubscriberExceptionHandler newEventBusSubscriberExceptionHandler() {
        return new SubscriberExceptionHandler(){
            @Override
            public void handleException(Throwable exception, SubscriberExceptionContext context) {
                if(exception instanceof RecoverableException ||
                   exception instanceof NonRecoverableException) {
                    getTransactionManager().getTransaction().setAbortCause(new IsisApplicationException(exception));
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.