JCL Help:EJclCppException.AsCppClass@AnsiString
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: EJclCppException.AsCppClass Method (AnsiString)
[+] EJclCppException Methods
[+] EJclCppException Properties
Search in JCL Help
Search in all projects
Summary
(C++ only) Returns a pointer to the underlying exception object.
Pascal
public function AsCppClass(CppClassName: AnsiString): Pointer; overload;
Description
This function is useful to access the original exception type. Example:
const char* msg = static_cast<std::exception*> (TheException->AsCppClass ("std::exception"))->what ();
Users of C++Builder XE or higher releases should consider using EJclCppException.AsCppClass<> instead because it avoids explicit string literals and type casting.
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