indexing description: "Base class for all exceptions passed from Java server to C++ client." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class EGS_JAVA_EXCEPTION inherit EGS_XAP_EXCEPTION rename make as base_make end create make feature -- Creation make (a_name: STRING; a_message: STRING; obj_ptr: POINTER) is -- local c_string_ptr: POINTER do base_make (a_name, a_message) c_string_ptr := cpp_get_get_java_exception_chain (obj_ptr); create java_exception_chain.make_from_c (c_string_ptr) cpp_delete_c_str (c_string_ptr) end feature -- Queries java_exception_chain: STRING -- the string containing all nested Java exceptions feature {NONE} -- externals cpp_get_get_java_exception_chain (obj_ptr: POINTER): POINTER is require obj_ptr_not_null: obj_ptr /= default_pointer external "C++ inline use , " alias "return _strdup (((OpenSpaces::JavaException*)$obj_ptr)->getJavaExceptionChain().c_str())" end cpp_delete_c_str (obj_ptr: POINTER) is require obj_ptr_not_null: obj_ptr /= default_pointer external "C++ inline" alias "free((char*)$obj_ptr)" end indexing library: "egigs-cpp: Library for accessing the GigaSpaces platform, POCO library based implementation." copyright: "Copyright (c) 2008, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end