source: trunk/IPs/systemC/processor/Morpheo/Include/ErrorMorpheo.h @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 799 bytes
Line 
1#ifndef morpheo_ErrorMorpheo
2#define morpheo_ErrorMorpheo
3
4/*
5 * $Id$
6 *
7 * [ Description ]
8 *
9 */
10
11#include <iostream>
12#include <exception>
13
14using namespace std;
15
16namespace morpheo              {
17
18  class ErrorMorpheo : public exception
19  {
20    // -----[ fields ]----------------------------------------------------
21  private : string _msg;
22   
23    // -----[ methods ]---------------------------------------------------
24  public  :             ErrorMorpheo  ()           throw() { _msg = "Exception detected ...";}
25  public  :             ErrorMorpheo  (string msg) throw() { _msg = msg;}
26  public  :             ~ErrorMorpheo (void)       throw() {}
27  public  : const char* what          ()    const  throw() { return ( _msg.c_str() );}
28
29  };
30
31}; // end namespace morpheo             
32
33#endif
Note: See TracBrowser for help on using the repository browser.