(Part-2) Exception Handling
(Part-2) Exception Handling
(Part-2) Exception Handling
o try
o catch
o finally, and
o throw
C# | Exception Class
Exception Hierarchy
Data It is used to get a collection of key/value pairs that provide additional user-defined inform
about the exception.
HelpLink It is used to get or set a link to the help file associated with this exception.
HResult It is used to get or set HRESULT, a coded numerical value that is assigned to a sp
exception.
InnerException It is used to get the Exception instance that caused the current exception.
Source It is used to get or set the name of the application that causes the error.
StackTrace It is used to get a string representation of the immediate frames on the call stack.
TargetSite It is used to get the method that throws the current exception.
C# SystemException Methods
Method Description