00001 #ifndef Fireworks_Core_FWExpressionException_h 00002 #define Fireworks_Core_FWExpressionException_h 00003 // -*- C++ -*- 00004 // 00005 // Package: Core 00006 // Class : FWExpressionException 00007 // 00016 // 00017 // Original Author: Chris Jones 00018 // Created: Thu Aug 21 14:22:22 EDT 2008 00019 // $Id: FWExpressionException.h,v 1.3 2009/01/23 21:35:41 amraktad Exp $ 00020 // 00021 00022 // system include files 00023 #include <string> 00024 00025 // user include files 00026 00027 // forward declarations 00028 00029 class FWExpressionException { 00030 00031 public: 00032 FWExpressionException(const std::string& iWhat, long iColumn) : 00033 m_what(iWhat), m_column(iColumn) { 00034 } 00035 //virtual ~FWExpressionException(); 00036 00037 // ---------- const member functions --------------------- 00038 const std::string& what() const { 00039 return m_what; 00040 } 00041 00042 long column() const { 00043 return m_column; 00044 } 00045 // ---------- static member functions -------------------- 00046 00047 // ---------- member functions --------------------------- 00048 00049 private: 00050 //FWExpressionException(const FWExpressionException&); // stop default 00051 00052 //const FWExpressionException& operator=(const FWExpressionException&); // stop default 00053 00054 // ---------- member data -------------------------------- 00055 std::string m_what; 00056 long m_column; 00057 }; 00058 00059 00060 #endif