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
19namespace 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
virtual const char * what() const noexcept
hf_exc(std::string message="")
@ HistFactory
Definition: RooGlobalFunc.h:62
Namespace for the RooStats classes.
Definition: Asimov.h:19