C++
try
A try block identifies a block of code for which particular exceptions will be activated. It's followed by one or more catch blocks.Associates one or more exception handlers (catch-clauses) with a compound statement.
Syntax:try
{
statement;
}
Example:#include
int main() {
try {
// do something (might throw an exception)
}
catch (...) {
// catches all exceptions, not already caught by a catch block before
// can be used to catch exception of unknown or irrelevant type
}
}
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 142 / 158770759. Delta: 0.02287 с