Belle II Software development
RCHandlerException.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include "daq/slc/runcontrol/RCHandlerException.h"
9
10#include <cstdarg>
11#include <cstdio>
12
13using namespace Belle2;
14
15RCHandlerException::RCHandlerException(const std::string& comment)
16{
17 m_comment = comment;
18}
19
20RCHandlerException::RCHandlerException(const char* format, ...)
21{
22 va_list ap;
23 char ss[1024 * 100];
24 va_start(ap, format);
25 vsprintf(ss, format, ap);
26 va_end(ap);
27 m_comment = ss;
28}
29
Abstract base class for different kinds of events.