What's the equivalent of std::runtime_error in D?
Imperatorn
johan_forsberg_86 at hotmail.com
Wed Nov 9 17:45:13 UTC 2022
On Wednesday, 9 November 2022 at 12:25:35 UTC, alexandr3000 wrote:
> ```d
> if (vkCreateInstance(&createInfo, null, &instance) !=
> VK_SUCCESS) {
> ???
> }
> ```
See Ali's answer.
Here's the link to enforce:
https://dlang.org/library/std/exception/enforce.html
And here's exception:
https://dlang.org/library/std/exception.html
More information about the Digitalmars-d
mailing list