Exception Properties
Explore the properties of exceptions in D programming including file origin, line number, message details, and handling collateral exceptions. Understand how exceptions form linked lists and how finally blocks contribute to exception flow.
We'll cover the following...
We'll cover the following...
Exception properties #
The information that is automatically printed on the output when the program terminates due to an exception is available as properties of exception objects as well. These properties are provided by the Throwable interface:
-
.file:the source file where the exception was ...