public static Object error(final ShenyuResultEnum shenyuResult, final Object object) {
        return shenyuResult().error(shenyuResult.getCode(), shenyuResult.getMsg(), object);
    }
Error object.

@param shenyuResult the shenyuResult
@param object  the object
@return the object
shenyu-plugin/shenyu-plugin-api/src/main/java/org/apache/shenyu/plugin/api/result/ShenyuResultWrap.java