CARMA C++
WorkResultSetPostError.h
1 #ifndef CARMA_UTIL_WORKRESULTSETPOSTERROR_H
2 #define CARMA_UTIL_WORKRESULTSETPOSTERROR_H
3 
4 #include <string>
5 
8 
9 
10 namespace carma {
11 namespace util {
12 
13 
14 class WorkResultSet::PostError : public util::ErrorException {
15  friend class WorkResultSet::Impl;
16 
17  public:
18  virtual ~PostError( ) throw();
19 
20  ::std::string getKey( ) const;
21 
22  bool getResultWasNormal( ) const;
23 
24  PostState getPostState( ) const;
25 
26  private:
27  // No copying
28  PostError( const PostError & rhs );
29  PostError & operator=( const PostError & rhs );
30 
31  PostError( const char * fileName,
32  int lineNo,
33  const ::std::string & wrsId,
34  const ::std::string & key,
35  bool resultWasNormal,
36  PostState postState );
37 
38  const ::std::string key_;
39  const bool resultWasNormal_;
40  const PostState postState_;
41 };
42 
43 
44 } // namespace carma::util
45 } // namespace carma
46 
47 #endif
Exception class for errors.
Interface file for the carma::util::WorkResultSet and carma::util::WorkResult classes.