Equivalent to Windows error codes in .NET.

Microsoft provides a set of standard error codes for Windows (http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx). When applicable, I find them useful for links in my own applications, rather than creating my own. Is there something similar but specific to .NET?

+4
source share
2 answers

.NET prevents the use of error codes. Instead, focus on using the standard exception classes or outgoing ones.

Exceptions should be preferable to error codes in .NET development.

+7
source

I agree with Reed Copsi, error codes are the โ€œremnantsโ€ of past error handling methods.

The new way to do me is Exception Handling .

0
source

All Articles