indexing description: "[ Utility class used to handle the C++ exceptions that may occur during Spaces operations ]" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class EGS_EXCEPTION_HANDLER_RECORD inherit EGS_EXCEPTION_HANDLER create {EGS_SHARED_EXCEPTION_HANDLER} make feature {EGS_SHARED_EXCEPTION_HANDLER} -- Queries last_exception: EGS_XAP_EXCEPTION -- The last exception occured was_exception: BOOLEAN is -- Has the exception occured during the last operation do Result := last_exception /= Void end clear_exception is -- Clears the last exception do last_exception := Void end feature {NONE} -- Implementation exception_call_back (excp_name_ptr: POINTER; excp_message_ptr: POINTER; excp_ptr: POINTER) is local excp_name: STRING excp_message: STRING do create excp_name.make_from_c (excp_name_ptr) create excp_message.make_from_c (excp_message_ptr) if is_java_exception (excp_name) then create {EGS_JAVA_EXCEPTION} last_exception.make (excp_name, excp_message, excp_ptr) else create {EGS_XAP_EXCEPTION} last_exception.make (excp_name, excp_message) end end feature 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