home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 41 / IOPROG_41.ISO / soft / c++ / NUMCPP11.ZIP / numerror.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-09  |  1.5 KB  |  53 lines

  1. //===================================================================
  2. // numerror.hpp
  3. //
  4. // Version 1.1
  5. //
  6. // Written by:
  7. //   Brent Worden
  8. //   WordenWare
  9. //   email:  Brent@Worden.org
  10. //
  11. // Copyright (c) 1998-1999 WordenWare
  12. //
  13. // Created:  August 28, 1998
  14. // Revised:  April 10, 1999
  15. //===================================================================
  16.  
  17. #ifndef _NUMERROR_H_
  18. #define _NUMERROR_H_
  19.  
  20. #include "numerics.h"
  21.  
  22. NUM_BEGIN
  23.  
  24. NUMERICS_EXPORT void NUMERICS_ERROR(const char *func, const char *msg);
  25. //-------------------------------------------------------------------
  26. // General error handling routine
  27. //-------------------------------------------------------------------
  28.  
  29. class Exception
  30. //-------------------------------------------------------------------
  31. // Numerics exception class
  32. //-------------------------------------------------------------------
  33. {
  34. public:
  35.     Exception(const char* meth, const char* msg)
  36.     //---------------------------------------------------------------
  37.     // Create and excection thrown by meth with description msg.
  38.     //---------------------------------------------------------------
  39.     { NUMERICS_ERROR(meth, msg); }
  40. };
  41.  
  42. NUM_END
  43.  
  44. #endif
  45.  
  46. //===================================================================
  47. // Revision History
  48. //
  49. // Version 1.0 - 08/28/1998 - New.
  50. // Version 1.1 - 04/10/1999 - Added Numerics namespace.
  51. //                            Added exception class.
  52. //===================================================================
  53.