FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
CInvalidArgumentException.h
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2005.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10  Author:
11  Ron Fox
12  NSCL
13  Michigan State University
14  East Lansing, MI 48824-1321
15 */
16 
17 #ifndef CINVALIDARGUMENTEXCEPTION_H
18 #define CINVALIDARGUMENTEXCEPTION_H
19 
20 #ifndef EXCEPTION_H
21 #include <Exception.h>
22 #endif
23 
34 {
35  // Member data (private)
36 private:
37  std::string m_valuePassed;
38  std::string m_whyBad;
39  mutable std::string m_reason;
40 
41  // Constructors and the various canonicals.
42 
43 public:
44  CInvalidArgumentException(std::string argument, std::string whybad,
45  std::string wasDoing);
48 
50  int operator==(const CInvalidArgumentException& rhs) const;
51  int operator!=(const CInvalidArgumentException& rhs) const;
52 
53  // Operations that make this an exception class:
54 
55  virtual const char* ReasonText() const;
56 };
57 
58 #endif
int operator!=(const CInvalidArgumentException &rhs) const
Definition: CInvalidArgumentException.cpp:90
Definition: CInvalidArgumentException.h:33
virtual const char * ReasonText() const
Definition: CInvalidArgumentException.cpp:104
int operator==(const CInvalidArgumentException &rhs) const
Definition: CInvalidArgumentException.cpp:77
CInvalidArgumentException(std::string argument, std::string whybad, std::string wasDoing)
Definition: CInvalidArgumentException.cpp:32
CInvalidArgumentException & operator=(const CInvalidArgumentException &rhs)
Definition: CInvalidArgumentException.cpp:61
Definition: Exception.h:41
virtual ~CInvalidArgumentException()
Definition: CInvalidArgumentException.cpp:51