public static OMSRuntimeException generateException(OMSResponseStatus status) { return(new OMSRuntimeException(status.getStatusCode(), status.getMore())); }
public static OMSRuntimeException generateException(OMSResponseStatus status, params string[] messageArgs) { return(new OMSRuntimeException(status.getStatusCode(), string.Format(status.getMore(), messageArgs))); }