class ApiResponse {

    @JsonProperty
    @JsonAlias("request_id")
    private String requestId;

    @JsonProperty
    @JsonAlias("errcode")
    private int errorCode;

    @JsonProperty
    @JsonAlias("errmsg")
    private String errorMessage;

    public boolean isSuccess() {
        return errorCode == 0;
    }

    public void assertSuccess() {<FILL_FUNCTION_BODY>}
}

        if (!isSuccess()) {
            throw new BusinessException("error.dingtalk_api_request_error", 500, errorMessage);
        }
    
<no_super_class>