C# Programming/Keywords/try
The try keyword is used to identify a statement or statement block as the body of an exception handling sequence. The body of the exception handling sequence must be followed by a clause, a catch clause, or both.
finally
try
{
foo();
}
catch(Exception Exc)
{
throw new Exception ("this is the error message", Exc);
}
| C# Keywords | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Special C# Identifiers (Contextual Keywords) | |||||||||||||||
| |||||||||||||||
| Contextual Keywords (Used in Queries) | |||||||||||||||
|