其中一些存在,其中一些不存在.找到它们的最佳策略是: Exception在D运行时(和Phobos)中进行全局搜索查找文本,并查看所有预先存在的异常.
但是,最有可能的是,你必须推出至少一些你自己的.
我通过此搜索找到的内容如下:
druntime\src\core\demangle.d(72):static class ParseException : Exception
druntime\src\core\demangle.d(81):static class OverflowException : Exception
druntime\src\core\exception.d(297): class UnicodeException : Exception
druntime\src\core\thread.d(34): class ThreadException : Exception
druntime\src\core\thread.d(51): class FiberException : Exception
druntime\src\core\time.d(2703): class TimeException : Exception
druntime\src\core\sync\exception.d(21): class SyncException : Exception
phobos\std\boxer.d(511): class UnboxException : Exception
phobos\std\concurrency.d(198): class MessageMismatch : Exception
phobos\std\concurrency.d(210): class OwnerTerminated : Exception
phobos\std\concurrency.d(225): class LinkTerminated : Exception
phobos\std\concurrency.d(240): class PriorityMessageException: Exception
phobos\std\concurrency.d(255): class MailboxFull : Exception
phobos\std\conv.d(33): class ConvException : Exception
phobos\std\demangle.d(26): private class MangleException : Exception
phobos\std\encoding.d(2056): class EncodingException : Exception
phobos\std\exception.d(792): class ErrnoException : Exception
phobos\std\file.d(183): class FileException : Exception
phobos\std\json.d(418): class JSONException : Exception
phobos\std\regexp.d(161): class RegExpException : Exception
phobos\std\socket.d(121): class SocketException: Exception
phobos\std\socket.d(455): class HostException: Exception
phobos\std\socket.d(670): class AddressException: Exception
phobos\std\stdio.d(2111): class StdioException : Exception
phobos\std\stream.d(44): class StreamException: Exception
phobos\std\utf.d(45): class UtfException : Exception
phobos\std\variant.d(1153): static class VariantException : Exception
phobos\std\xml.d(2726): class XMLException : Exception
phobos\std\zip.d(44): class ZipException : Exception
phobos\std\zlib.d(42): class ZlibException : Exception
phobos\std\windows\registry.d(75): class Win32Exception : Exception
Run Code Online (Sandbox Code Playgroud)
(当然,如果有异常继承自类以外的类Exception,或者如果间距很奇怪,则它们不在此列表中.)
| 归档时间: |
|
| 查看次数: |
245 次 |
| 最近记录: |