RAD Studio
ContentsIndex
PreviousUpNext
throw

Category 

Statements, C++-Specific Keywords 

Syntax  

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.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!