ThrowPolicy.h
Go to the documentation of this file.
1 #ifndef _utl_ThrowPolicy_h_
2 #define _utl_ThrowPolicy_h_
3 
4 #include <utl/AugerException.h>
5 #include <string> // No standard header for forwarding of char_traits.
6 
7 
8 namespace utl {
9 
26  template<typename RetType = int, class E = AugerException>
27  struct ThrowPolicy {
28  static RetType Handle(const std::string& message) {
29  throw E(message);
30  }
31  };
32 
33 }
34 
35 
36 #endif
static RetType Handle(const std::string &message)
Definition: ThrowPolicy.h:28
Simply throws.
Definition: ThrowPolicy.h:27

, generated on Tue Sep 26 2023.