public void setError(int code, String msg) {
        setError(new Error(code, msg));
    }
This is a convenience method to call {@link #setError(Error)}.

@param code The code of the error to set.
@param msg  The message of the error to set.
messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingNode.java