DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Exceptions.cpp
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 
15 // Framework include files
16 #include "DD4hep/Exceptions.h"
17 #include "DD4hep/Primitives.h"
18 
19 using namespace std;
20 using namespace DD4hep;
21 
22 string unrelated_type_error::msg(const type_info& typ1, const type_info& typ2, const string& text) {
23  string m = "The types " + typeName(typ1) + " and " + typeName(typ2) + " are not related. " + text;
24  return m;
25 }
26 
27 string unrelated_value_error::msg(const type_info& typ, const string& text) {
28  string m = "The type " + typeName(typ) + " cannot be converted: " + text;
29  return m;
30 }
std::string typeName(const std::type_info &type)
ABI information about type names.
Definition: Primitives.cpp:186
TGeoShape TGeoMedium * m
Definition: Volumes.cpp:294