知识卡片
用退出条件控制脚本
EXIT|STOP以成功状态退出,EXIT-ERR以失败状态退出;EXIT-IF INVALID-URL <url>或EXIT-IF STACK-EMPTY根据简单前置条件中止。可在发请求前检查输入,避免继续处理错误状态;条件检查范围由工具提供的谓词决定,不等于完成了业务数据校验。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 附录D:HyperCLI操作参考 · 查看原书依据
EXITǀSTOP Halt and exit with 0 EXIT-ERR Halt and exit with 1 EXIT-IF Halt and exit with 1 if simple condition is met .. INVALID-URL <urlǀ#$> Returns TRUE if the string is NOT a valid URL .. STACK-EMPTY Returns TRUE if there is nothing on the internal stack
参考来源
- 位置:《RESTful Web API Patterns and Practices Cookbook》Appendix D. Using the HyperCLI(来源项目book-sources,源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/app04.xhtml)
- 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。
- 原始内容:EXITǀSTOP Halt and exit with 0 EXIT-ERR Halt and exit with 1 EXIT-IF Halt and exit with 1 if simple condition is met .. INVALID-URL <urlǀ#$> Returns TRUE if the string is NOT a valid URL .. STACK-EMPTY Returns TRUE if there is nothing on the internal stack