Logo ROOT  
Reference Guide
HistFactoryException.h
Go to the documentation of this file.
1 // @(#)root/roostats:$Id$
2 // Author: George Lewis, Kyle Cranmer
3 /*************************************************************************
4  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 
12 #ifndef HISTFACTORY_EXCEPTION
13 #define HISTFACTORY_EXCEPTION
14 
15 #include <exception>
16 #include <string>
17 
18 
19 namespace RooStats{
20  namespace HistFactory{
21 
22  class hf_exc: public std::exception
23  {
24  public:
25  hf_exc(std::string message = "") : _message("HistFactory - Exception " + message) { }
26 
27  virtual const char* what() const noexcept
28  {
29  return _message.c_str();
30  }
31 
32  private:
33  const std::string _message;
34  };
35 
36  }
37 }
38 
39 #endif
RooStats::HistFactory::hf_exc::_message
const std::string _message
Definition: HistFactoryException.h:33
RooStats::HistFactory::hf_exc
Definition: HistFactoryException.h:23
RooStats::HistFactory::hf_exc::what
virtual const char * what() const noexcept
Definition: HistFactoryException.h:27
RooFit::HistFactory
@ HistFactory
Definition: RooGlobalFunc.h:62
RooStats::HistFactory::hf_exc::hf_exc
hf_exc(std::string message="")
Definition: HistFactoryException.h:25
RooStats
Namespace for the RooStats classes.
Definition: Asimov.h:19