public SetErrorBody ( string msg, ResponseBody bdy = null ) : void | ||
msg | string | |
bdy | ResponseBody | |
return | void |
public void SetErrorBody(string msg, ResponseBody bdy = null) {
success = false;
message = msg;
body = bdy;
}
}
public void SetErrorResponse(Response response, int id, string format, dynamic arguments = null, bool user = true, bool telemetry = false) { var msg = new Message(id, format, arguments, user, telemetry); var message = Utilities.ExpandVariables(msg.format, msg.variables); response.SetErrorBody(message, new ErrorResponseBody(msg)); }