Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

C++ _THROWC? throw, try, catch and exceptions?

» close window

The Question is:

 
Hello,
 
i'm porting a source code to OpenVMS. It is written in C++.
Now, there is a function like this:
 
if ( __refcount != 0 ){
        _THROWC(  "ERROR: Object collected with non-zero refcount" );
        return;
      }
 
The definition is:
 
#define _THROWC(y) throw THROW_TYPE(y)
 
What is _THROW and which makes it? And which function can i use under OpenVMS?
 Or what is the best way to move this code to OpenVMS.
 
Thank you very much!
 


The Answer is :

 
  This appears to be a use of various comparatively recent signal-handling
  additions to C++, and specifically the try, throw and catch calls.
 
  Standard signal handling or the C call perror would be obvious mapping,
  as would the OpenVMS condition handling facility.  Details on the use of
  try, throw and catch, and of the OpenVMS condition handling facility,
  are included in the C++ documentation for OpenVMS.
 
  The OpenVMS (and C++) documentation is available at:
 
  http://www.hp.com/go/openvms/doc/

answer written or last revised on ( 29-NOV-2004 )

» close window

 

Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.