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 TopologyBroker
11 /// @brief top-class (Organizer) of the TopologyBroker mechanism
12 /// @detailed responsibilities:
13 /// @author Oliver Lange
14 
15 
16 #ifndef INCLUDED_protocols_noesy_assign_Exceptions_hh
17 #define INCLUDED_protocols_noesy_assign_Exceptions_hh
18 
19 
20 // Unit Headers
21 //#include <devel/topology_broker/Exceptions.fwd.hh>
22 
23 // Utility Headers
24 #include <core/id/NamedAtomID.hh>
25 #include <utility/excn/Exceptions.hh>
27 
28 #include <utility/vector1.hh>
29 
30 
31 
32 namespace protocols {
33 namespace noesy_assign {
34 
35 class EXCN_NoesyAssign : public virtual utility::excn::EXCN_Msg_Exception {
36  typedef EXCN_Msg_Exception Parent;
37 protected:
38  EXCN_NoesyAssign() : EXCN_Msg_Exception( "" ){};
39 public:
40  virtual void show( std::ostream& os ) const {
41  os << "\n[NOE Exception]: ";
42  Parent::show( os );
43  }
44 };
45 
47 public:
49  : utility::excn::EXCN_Msg_Exception( msg ) {};
50 };
51 
52 
54 public:
56  : utility::excn::EXCN_Msg_Exception( msg ), atom_( atom ) {};
57 
58  core::id::NamedAtomID const& atom() { return atom_; }
59  virtual void show( std::ostream& os ) const {
60  utility::excn::EXCN_Msg_Exception::show( os );
61  os << "Resonance for atom " << atom_ << " not found ";
62  }
63 private:
65 };
66 
68 public:
69  EXCN_AssignmentNotFound( PeakAssignment const& assignment, std::string const& msg )
70  : utility::excn::EXCN_Msg_Exception( msg ), assignment_( assignment ) {};
72 };
73 
75 public:
76  EXCN_FileFormat( std::string msg ) : utility::excn::EXCN_Msg_Exception( msg ) {};
77 };
78 
79 } //namespace
80 }
81 #endif