Inner Exception in C sharp Arabic #40
Suggested Videos
Exception Handling in C sharp Arabic #39
❑ The basics of inner exceptions.
Inner Exception
❑ The InnerException property retruns the Exception instance that caused the current exception.
❑ To retain the original exception pass it as a parameter to the constructor , of the current exception.
❑ Always check if inner exception is not null before accessing any property of the inner exception object ,else , you may get null Reference Exception .
❑ To get the type of innerException use Gettype() method.
Tags:
C sharp