Quote of the day
Aim not for what you are, but for what you could be.
,EXCEPTION HANDLING
, • C#, like many object-oriented languages, handles errors and abnorm
conditions with exceptions. An exception is an object that
encapsulates information about an unusual program occurrence.
• It is important to distinguish between bugs, errors, and exceptions.
bug is a programmer mistake that should be fixed before the code
shipped. Exceptions are not a protection against bugs. Although a b
might cause an exception to be thrown, you should not rely on
exceptions to handle your bugs. Rather, you should fix the bug.
Aim not for what you are, but for what you could be.
,EXCEPTION HANDLING
, • C#, like many object-oriented languages, handles errors and abnorm
conditions with exceptions. An exception is an object that
encapsulates information about an unusual program occurrence.
• It is important to distinguish between bugs, errors, and exceptions.
bug is a programmer mistake that should be fixed before the code
shipped. Exceptions are not a protection against bugs. Although a b
might cause an exception to be thrown, you should not rely on
exceptions to handle your bugs. Rather, you should fix the bug.