Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:01

0001 #ifndef Fireworks_Core_FWExpressionException_h
0002 #define Fireworks_Core_FWExpressionException_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWExpressionException
0007 //
0008 /**\class FWExpressionException FWExpressionException.h Fireworks/Core/interface/FWExpressionException.h
0009 
0010    Description: Holds information about an expression parsing failure
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Thu Aug 21 14:22:22 EDT 2008
0019 //
0020 
0021 // system include files
0022 #include <string>
0023 
0024 // user include files
0025 
0026 // forward declarations
0027 
0028 class FWExpressionException {
0029 public:
0030   FWExpressionException(const std::string& iWhat, long iColumn) : m_what(iWhat), m_column(iColumn) {}
0031   //virtual ~FWExpressionException();
0032 
0033   // ---------- const member functions ---------------------
0034   const std::string& what() const { return m_what; }
0035 
0036   long column() const { return m_column; }
0037   // ---------- static member functions --------------------
0038 
0039   // ---------- member functions ---------------------------
0040 
0041 private:
0042   //FWExpressionException(const FWExpressionException&); // stop default
0043 
0044   //const FWExpressionException& operator=(const FWExpressionException&); // stop default
0045 
0046   // ---------- member data --------------------------------
0047   std::string m_what;
0048   long m_column;
0049 };
0050 
0051 #endif