DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Exceptions.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <DD4hep/Exceptions.h>
16 #include <DD4hep/Primitives.h>
17 
18 using namespace dd4hep;
19 
20 std::string unrelated_type_error::msg(const std::type_info& typ1, const std::type_info& typ2, const std::string& text) {
21  std::string m = "The types " + typeName(typ1) + " and " + typeName(typ2) + " are not related. " + text;
22  return m;
23 }
24 
25 std::string unrelated_value_error::msg(const std::type_info& typ, const std::string& text) {
26  std::string m = "The type " + typeName(typ) + " cannot be converted: " + text;
27  return m;
28 }
Primitives.h
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
Exceptions.h