首页 > 其他分享 >基础设置之——dev_set_check

基础设置之——dev_set_check

时间:2024-03-01 17:48:04浏览次数:13  
标签:set dev HDevelop error operator check

dev_set_check( : : Mode : )

dev_set_check specifies how HDevelop has to react in case of an error, i.e., if the return state of an operator is not H_MSG_TRUE (2).

If Mode has the value 'give_error'---which is the system default---an erroneous operator call will throw an exception, that can be caught within the HDevelop program by the catch statement. However, if there is no surrounding try-catch block in the HDevelop program and the program is executed within HDevelop, the program execution stops at the erroneous operator and an error message box is opened to display the error text. In addition, the appropriate operator call is entered into the Operator Window, so that the user can easily edit and possibly correct the parameters of the erroneous operator call. If the procedure was called from HDevEngine and the exception is not caught within the HDevelop program, an HDevEngineException object is thrown and the procedure is left.

If Mode is set to '~give_error', the error will be ignored and the program continues with the next operator. dev_set_check('~give_error') is intended to be used in connection with dev_error_var, which allows to check the result state that is returned by the operator calls.

如果 Mode 的值为 'give_error'---这是系统默认值---错误的运算符调用将引发异常,该异常可以通过 catch 语句在 HDevelop 程序中捕获。但是,如果 HDevelop 程序中没有周围的 try-catch 块,并且程序在 HDevelop 中执行,则程序执行将在错误的运算符处停止,并打开一个错误消息框以显示错误文本。此外,在“操作员窗口”中输入相应的操作员调用,以便用户可以轻松编辑并可能更正错误操作员调用的参数。如果该过程是从 HDevEngine 调用的,并且未在 HDevelop 程序中捕获异常,则会引发 HDevEngineException 对象并保留该过程。

如果 Mode 设置为“~give_error”,则错误将被忽略,程序将继续

————发行版本可以设置为:dev_set_check ('~give_error')

————测试版本可以设置为:dev_set_check ('give_error')

标签:set,dev,HDevelop,error,operator,check
From: https://www.cnblogs.com/echo-efun/p/18047572

相关文章

  • 【STL和泛型编程】4. hashtable、unordered_set、unordered_map
    1.hashtable前置知识:【数据结构】3.跳表和散列 基本原理:将Key计算成一个数值,然后取余数得到它在表头中的位置table(篮子)里每个指针都指向一个链表(桶)来存储余数相同的值如果桶内的元素个数比篮子个数还多,则将篮子的大小扩充篮子是vector,数量是质数,初始为53,53扩充后为97......
  • dev_set_lut显示效果
    1.原图——dev_set_lut('default')2.dev_set_lut('rainbow')3.dev_set_lut('temperature') 4.dev_set_lut('inverse') 其它可设置参数:*'default','linear','inverse','sqr','inv_......
  • 微信小程序中调用wx.getSetting可以获取到哪些权限设置
    微信小程序中调用wx.getSetting可以获取到哪些权限设置:https://blog.csdn.net/u012767761/article/details/119648707?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522170928385316800222888134%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&reque......
  • Superset3 前后端搭建详解
    Superset3搭建目录Superset3搭建后端:方法1、在Windows本地搭建方法2:运维线上搭建前端:前端搭建Superset数据库其他Superset框架是一套包括前后端代码的框架,后端语言为Python,前端语言为React,superset启动后包括一个前端地址+端口,一个后端地址+端口的服务,后端这个服务是带......
  • GenAI助力DevOps,塑造软件工程的未来
    自2022年以来,GenAI无疑已成为一种普遍的技术趋势。在本文中,我们将探索DevOps中令人兴奋的GenAI领域,讨论其潜在优势、局限性、新兴趋势和最佳实践,深入了解AI支持的DevOps前沿世界,并探索这一强大组合如何重塑软件工程的未来。 DevOps中的GenAI介绍随着ChatGPT、B......
  • 前端学习-vue视频学习003-setup(重要)
    学习教程-尚硅谷视频将原vue2的格式改为vue3---使用setup要点:this在vue3中被弱化,setup函数中不能使用this定义数据时,如果不是响应式的(暂时还不是很理解响应式),不会触发页面的变化vue3支持一个标签直接写多次,如<template><Person/><Person/><Person/></t......
  • 基础数据结构->set&&map
    set&&mapBEGIN:惜墨如金set用法#include<bits/stdc++.h>usingnamespacestd;voidthe_map(){map<string,int>ds;stringkis="kis";ds[kis]=2;ds["a+a"]=3;ds["b+"]=4;ds["c-"]=5;//这样就可将这个“数......
  • Vuex系列之(六)Vuex Devtools
    VuexDevtools由于Vue和Vuex都是由官方团队开发的,Vue的Devtools和Vuex的Devtools是合二为一的组件页签、Vuex页签、事件页签事件页签:观察自定义事件和全局事件总线中的事件VuexDevtools仅仅捕获mutations中的动作,actions中的动作是不会捕获的context:actions中的上下文......
  • 使用safe-area-inset-*来适配iPhoneX的刘海屏及底部横条区域
    之前一直沿用同事写的媒体查询处理这个问题,所有固定在底部展示的按钮栏都要用媒体查询来定义距离底部的距离,着实不太方便,而且媒体查询比较有局限性,不太可能把市面上所有机型都适配一遍。刚好要处理折叠屏适配问题,重构了一个复杂页面的布局,就找到了使用safe-area-inset-*来适配iPh......
  • vue——使用yarn安装electron依赖时报错:RequestError: read ECONNRESET
    参考:1.Electron安装报错RequestError:readECONNRESEThttps://blog.csdn.net/qq_33835370/article/details/123612429?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-123612429-blog-122476584.235^v43^control&spm=1......