Delphi中的EProgrammerNotFound异常? [英] EProgrammerNotFound exception in Delphi?

查看:172
本文介绍了Delphi中的EProgrammerNotFound异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Delphi 2009中,SysUtils.pas包含第425行的

In Delphi 2009, SysUtils.pas contains this in line 425:

EProgrammerNotFound = class(Exception);




  • 这只是一个复活节彩蛋或某些严重?

  • 何时应该提出这个异常?

  • 它是否也存在于Delphi Prism和/或Free Pascal?

    • Is this simply an easter egg or something serious?
    • When should this exception be raised?
    • Does it also exist in Delphi Prism and/or Free Pascal?
    • 问:这个异常类是否仍然在Delphi(当前是XE7)中声明?
      A:是的,甚至是记录的

      Q: Is this exception class still declared in Delphi (currently XE7)? A: Yes, and it is even documented!


      指示软件故障的非标准方式。

      Nonstandard way to indicate software faults.

      可以使用EProgrammerNotFound作为指示运行时检测到的软件
      故障的替代方法。

      You can use EProgrammerNotFound as an alternative to indicate software faults detected at run time.


      推荐答案

      只是一个漫长的一天的结果,我们已经有点蠢。对于许多年来(自从我一直在团队中),我们总是开玩笑地说,在编译器中替换一个类似消息的最常见的错误之一。在内部,我们一直在不同的事情和人物(主要是在团队本身)开玩笑地玩笑。如果你没有幽默感,那么你就要注意一个早期的坟墓。

      It is just the result of a long day and we had gotten a little giddy. For many, many years (ever since I'd been on the team), we'd always joked about replacing some error message in the compiler for one of the most common errors with a similar message. Internally we've always joked and poked fun at different things and people (mostly on the team itself). If you don't have a sense of humor, you're destined to an early grave.

      这是一个简单的对话;

      It was a simple conversation;

      哦,你应该在该函数中提高了EProgrammerNotFound异常。

      LOL!我们应该添加该异常,看看谁知道。

      我不知道为什么会有这么多的猜测?

      "Oh, you should have raised the EProgrammerNotFound exception in that function."
      "LOL! We should add that exception and see who notices."
      "I wonder how much speculation there will be about why it is there?"

      所以,我想我可以说的是,你们都玩了我们的手; - )... Buwahahaha!pwned!

      So, I guess all I can say is, "You've all played right into our hands ;-)... Buwahahaha! pwned!"

      这篇关于Delphi中的EProgrammerNotFound异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆