On Tuesday, 16 November 2021 at 00:10:44 UTC, Imperatorn wrote:
On Tuesday, 16 November 2021 at 00:05:45 UTC, Imperatorn wrote:
On Tuesday, 16 November 2021 at 00:03:14 UTC, Imperatorn wrote:
On Monday, 15 November 2021 at 22:55:55 UTC, pascal111 wrote:
On Monday, 15 November 2021 at 22:39:36 UTC, Imperatorn wrote:
On Monday, 15 November 2021 at 22:28:28 UTC, pascal111 wrote:
I want to know where the list of exceptions names that "throw" statement uses. I searched in dlang site, and google but couldn't reach it.

Just so I understand, do you mean a list similar to this?
https://www.completecsharptutorial.com/basic/complete-system-exception.php

Exactly!

You can begin here:
https://dlang.org/phobos/core_exception.html

If there is no such similar list we should create one.

I just did a quick grep of phobos and matched the derived exceptions and got this:
Base64Exception
MessageMismatch
OwnerTerminated
LinkTerminated
PriorityMessageException
MailboxFull
TidMissingException
ConvException
CSVException
EncodingException
MeaCulpa
E2
E3
E
ErrnoException
TestException
FileException
GetOptException
MyEx
JSONException
ProcessException
StdioException
StringException
MatchException
URIException
UUIDParsingException
VariantException
XMLException
ZipException
ZlibException
CheckFailure
FormatException
CurlException
RegexException
WindowsException

Here are some guides to follow if you want (and that we can learn from in D):

https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/using-standard-exception-types

https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/exception-throwing

https://docs.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions

https://docs.microsoft.com/en-us/dotnet/standard/exceptions/

https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/exceptions/creating-and-throwing-exceptions

Reply via email to