Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Exceptions.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file core/kinematics/Exceptions.hh
11 /// @brief Fold tree class
12 /// @author Phil Bradley
13 
14 
15 #ifndef INCLUDED_core_kinematics_Exceptions_hh
16 #define INCLUDED_core_kinematics_Exceptions_hh
17 
18 
19 // Unit headers
21 
22 // Package Headers
23 
24 // utility headers
25 #include <utility/excn/Exceptions.hh>
26 
27 // ObjexxFCL Headers
28 
29 // // C++ Headers
30 #include <cassert>
31 #include <vector>
32 
33 
34 namespace core {
35 namespace kinematics {
36 
37 class EXCN_InvalidFoldTree : public utility::excn::EXCN_Msg_Exception {
38  typedef utility::excn::EXCN_Msg_Exception Parent;
39 public:
41  : EXCN_Msg_Exception( msg ), bad_tree_( f ) {};
42 
43  using utility::excn::EXCN_Msg_Exception::show;
44 
45  virtual void show( std::ostream& os ) {
46  os << msg() << "\nInvalid FoldTree: "<< bad_tree() << std::endl;
47  }
48 
49  FoldTree const& bad_tree() { return bad_tree_; };
50 private:
52 };
53 
54 }
55 }
56 
57 #endif