Provides a code snippet to explain how to use User::Leave() .
You can use the User::Leave() function to terminate a function’s processing immediately when an exception condition occurs. In the example below, if the new fails, the function calls User::Leave() with an error code. The return type of the function is void , because it is not necessary to use it to return error information.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.