411 REFERENCE · Wikibooks
C Sharp Programming/Keywords/try
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Keywords try
__TOC__
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);
}