JCL Help:EJclCppException.AsCppClass

From Project JEDI Wiki
Jump to navigationJump to search


Summary

(C++ only) Returns a pointer to the underlying exception object.


Pascal

 public function AsCppClass<TCppClass: TInaccessibleType>: TPointerType<TCppClass>; overload;


Description

This function is useful to access the original exception type. Example:

const char* msg = TheException->AsCppClass<std::exception> ()->what ();

Supported in C++Builder XE and higher only.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page