~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/API/APIExceptions.hh

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
 
1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
2
2
 *
3
3
 * MAUS is free software: you can redistribute it and/or modify
4
4
 * it under the terms of the GNU General Public License as published by
12
12
 *
13
13
 * You should have received a copy of the GNU General Public License
14
14
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
15
 */
 
16
 
17
17
#ifndef _SRC_COMMON_CPP_API_APIEXCEPTIONS_
18
18
#define _SRC_COMMON_CPP_API_APIEXCEPTIONS_
19
19
#include <string>
62
62
    FRIEND_TEST(APIExceptionsTest, TestUnhandledException_What);
63
63
  };
64
64
 
 
65
  class NoInputException : public MAUSExceptionBase {
 
66
 
 
67
  public:
 
68
    explicit NoInputException() : MAUSExceptionBase("") {}
 
69
    virtual ~NoInputException() throw() {}
 
70
 
 
71
  private:
 
72
    virtual const char* _what() const throw() {return ret.c_str();}
 
73
 
 
74
    static const std::string ret;
 
75
  };
65
76
}// end of namespace
66
77
 
67
78
#endif