com.mars.iserver.util.ResponseUtil Maven / Gradle / Ivy
package com.mars.iserver.util;
import com.mars.common.util.MesUtil;
import com.mars.server.server.request.HttpMarsResponse;
/**
* 响应工具类
*/
public class ResponseUtil {
/**
* 出错响应
* @param marsResponse
*/
public static void sendServerError(HttpMarsResponse marsResponse, String ex){
marsResponse.send(MesUtil.getMes(500,ex).toJSONString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy