00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2004 by all Contributors. 00005 All Rights reserved. 00006 00007 The contents of this file are subject to the restrictions and limitations 00008 set forth in the SystemC Open Source License Version 2.3 (the "License"); 00009 You may not use this file except in compliance with such restrictions and 00010 limitations. You may obtain instructions on how to receive a copy of the 00011 License at http://www.systemc.org/. Software distributed by Contributors 00012 under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 00013 ANY KIND, either express or implied. See the License for the specific 00014 language governing rights and limitations under the License. 00015 00016 *****************************************************************************/ 00017 00018 /***************************************************************************** 00019 00020 sc_exception.h -- Exception handling for SystemC classes. All SystemC 00021 classes are expected to throw only sc_exception (and 00022 derived from it) objects, standard C++ exceptions, and 00023 structured exceptions (platform dependent). 00024 00025 Original Author: Gene Bushuyev, Synopsys, Inc. 00026 00027 *****************************************************************************/ 00028 00029 /***************************************************************************** 00030 00031 MODIFICATION LOG - modifiers, enter your name, affiliation, date and 00032 changes you are making here. 00033 00034 Name, Affiliation, Date: 00035 Description of Modification: 00036 00037 *****************************************************************************/ 00038 00039 #ifndef SC_EXCEPTION_H 00040 #define SC_EXCEPTION_H 00041 00042 00043 #include "systemc/utils/sc_string.h" 00044 00045 00046 // ---------------------------------------------------------------------------- 00047 // CLASS : sc_exception 00048 // 00049 // Exception base class. 00050 // ---------------------------------------------------------------------------- 00051 00052 class sc_exception 00053 { 00054 public: 00055 00056 sc_exception(); 00057 sc_exception( const sc_string& what_ ); 00058 sc_exception( const sc_exception& ); 00059 00060 sc_exception& operator = ( const sc_exception& ); 00061 00062 virtual ~sc_exception(); 00063 00064 virtual const char* what() const; 00065 00066 protected: 00067 00068 sc_string m_what; 00069 }; 00070 00071 00072 #endif 00073 00074 // Taf!
1.2.18