RAD Studio |  |

throw
See Also
Collapse All

Category

Statements, C++-Specific Keywords

Syntax

Copy Code

    throw assignment-expression

Description

When an exception occurs, the throw expression initializes a temporary object of the type T (to match the type of argument arg) used in throw(T arg). Other copies can be generated as required by the compiler. Consequently, it can be useful to define a copy constructor for the exception object.

See Also

catch

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!