C# Programming/Keywords/try
From Wikibooks, open books for an open world
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 catch clause, a
finally clause, or both.
try
{
foo();
}
catch(Exception Exc)
{
throw new Exception ("this is the error message", Exc);
}
C# Keywords | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Special C# Identifiers | ||||||||||
|