Java / C# are executed under virtual machine. D is executed on real hardware. You can use your OS api to catch these exceptions, for windows it is SetUnhandledExceptionFilter. But you will never be able to log for example line where this exception happend.