gem5/ext/dsent/libutil/Exception.h
Nilay Vaish e8ed7b1d1b ext: add the source code for DSENT
This patch adds a tool called DSENT to the ext/ directory.  DSENT
is a tool that models power and area for on-chip networks.  The next
patch adds a script for using the tool.
2014-10-11 15:02:23 -05:00

30 lines
687 B
C++

#ifndef __EXCEPTION_H__
#define __EXCEPTION_H__
#include <exception>
#include "String.h"
namespace LibUtil
{
using std::exception;
// Exception class handles the all exception messages in the program
class Exception : public exception
{
public:
// All constructors/destructors/functions in this class don't throw any events
Exception(const String& exception_msg_) throw();
~Exception() throw();
// Derived from std::exception class that returns a null-terminated char string
const char* what() const throw();
private:
String mExceptionMsg;
};
}
#endif // __EXCEPTION_H__