Exception.hpp
Go to the documentation of this file.
1 // ========================================================================================
2 // ApproxMVBB
3 // Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 // ========================================================================================
9 
10 #ifndef ApproxMVBB_Common_Exception_hpp
11 #define ApproxMVBB_Common_Exception_hpp
12 
13 #include <stdexcept>
14 #include <exception>
15 #include <string>
16 #include <sstream>
17 
18 namespace ApproxMVBB{
19  class Exception : public std::runtime_error {
20  public:
21  Exception(const std::stringstream & ss): std::runtime_error(ss.str()){}
22  private:
23 
24  };
25 }
26 
27 #define ApproxMVBB_THROWEXCEPTION( message ) {std::stringstream ___s___ ; ___s___ << message << std::endl << " @ " << __FILE__ << " (" << __LINE__ << ")" << std::endl; throw ApproxMVBB::Exception(___s___);}
28 
29 
30 
31 #endif // Exception_hpp
These are some container definitions.
Exception(const std::stringstream &ss)
Definition: Exception.hpp:21


asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:08