FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
URIFormatException.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 EXCEPTION_H
18 #include <Exception.h>
19 #endif
20 
21 #include <string>
22 
23 
24 
38 {
39 private:
40  std::string m_Reason;
41 
42 
43 public:
44  // Constructors:
45 
46  CURIFormatException(std::string uri, const char* file, int line);
47  CURIFormatException(std::string uri, std::string port,
48  const char* file, int line);
49  CURIFormatException(std::string uri, const char* host,
50  const char* file, int line);
51  CURIFormatException(const CURIFormatException& rhs); // copy construction
52 
53  virtual ~CURIFormatException();
54 
55  // Remaining canonicals:
56 
58  int operator==(const CURIFormatException& rhs) const;
59  int operator!=(const CURIFormatException& rhs) const;
60 
61  // Exception interface:
62 
63  virtual const char* ReasonText() const;
64  virtual int ReasonCode() const;
65 
66 };
int operator!=(const CURIFormatException &rhs) const
Definition: URIFormatException.cpp:133
CURIFormatException(std::string uri, const char *file, int line)
uri is just not the right format.
CURIFormatException & operator=(const CURIFormatException &rhs)
Definition: URIFormatException.cpp:110
Definition: URIFormatException.h:37
Definition: Exception.h:41
int operator==(const CURIFormatException &rhs) const
Definition: URIFormatException.cpp:123
virtual int ReasonCode() const
Definition: URIFormatException.cpp:158
virtual const char * ReasonText() const
Definition: URIFormatException.cpp:149