The D documentation seems to be a bit messy, and I’m not able to find this information anywhere on the official site. I’m needing some common exception types (e.g. NotFiniteNumberException, FileIOException, types like that), do these exist in the core libraries, or would I have to roll these myself?
Share
Some of them exist, some of them don’t. The best strategy to find them is to just do a global search look for the text
: Exceptionin the D runtime (and Phobos), and seeing what all the preexisting exceptions are.Most likely, though, you’ll have to roll out at least some of your own.
What I found through this search were the following:
(Of course, if there are exceptions that inherit from classes other than
Exception, or if there spacing was weird, then they’re not on this list.)