V2EX  ›  英汉词典

Runtime Exception

释义 Definition

运行时异常:程序在运行过程中(而非编译阶段)由于某种错误或意外条件而抛出的异常/错误信号。常见于输入不合法、空指针、数组越界、除以零、资源不可用等情况。(在某些语言如 Java 中,Runtime Exception 常特指“不强制捕获的异常”一类。)

发音 Pronunciation (IPA)

/ˈrʌnˌtaɪm ɪkˈsɛpʃən/

例句 Examples

A runtime exception stopped the program.
运行时异常导致程序停止了。

If the file path is invalid, the application may throw a runtime exception when it tries to load the configuration.
如果文件路径无效,应用在尝试加载配置时可能会抛出运行时异常。

词源 Etymology

runtimerun(运行)+ time(时间)构成,指“程序实际执行的阶段”。exception 来自拉丁语 exceptio,有“例外、排除”的含义;在编程语境中引申为“偏离正常流程的情况”,需要被“抛出/处理”。合在一起即“运行阶段出现的异常”。

相关词 Related Words

文学与著作 Literary Works

  • Effective Java(Joshua Bloch):讨论运行时异常与受检异常的取舍与设计原则。
  • Java Concurrency in Practice(Brian Goetz 等):在并发与线程执行语境中涉及异常传播与运行时失败。
  • Clean Code(Robert C. Martin):在“错误处理”章节中谈到异常(含运行时异常)的使用方式与代码可读性。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1715 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 01:27 · PVG 09:27 · LAX 17:27 · JFK 20:27
♥ Do have faith in what you're doing.