public void callOnError(ExecutionError error) {
        Handler h = handlers.get(new HandlerType(EventType.ERROR, null, null));
        if (h != null) {
            ExecutionErrorHandler errorHandler = (ExecutionErrorHandler) h;
            errorHandler.call(error, error.getContext());
        }
    }