thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
Switch.xh
1// -*- C++ -*-
2//
3// Switch.xh is a part of ThePEG - Toolkit for HEP Event Generation
4// Copyright (C) 1999-2019 Leif Lonnblad
5//
6// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef ThePEG_Switch_XH
10#define ThePEG_Switch_XH
11//
12// This is the declarations of the exception classes used by the
13// Switch class.
14//
15
16
17#include "InterfaceBase.xh"
18
19namespace ThePEG {
20
21/** @cond EXCEPTIONCLASSES */
22/** Exception class used by Switch if variable is set to a value which
23 * is not a listed option. */
24struct SwExSetOpt: public InterfaceException {
25 /** Standard constructor. */
26 SwExSetOpt(const InterfaceBase & i, const InterfacedBase & o, long v);
27};
28
29/** Exception class used by Switch if an unkown error
30 * occurs. */
31struct SwExSetUnknown: public InterfaceException {
32 /** Standard constructor. */
33 SwExSetUnknown(const InterfaceBase & i, const InterfacedBase & o, long v);
34};
35
36/** Exception class used by Switch if an unkown error
37 * occurs. */
38struct SwExGetUnknown: public InterfaceException {
39 /** Standard constructor. */
40 SwExGetUnknown(const InterfaceBase & i, const InterfacedBase & o,
41 const char * s);
42};
43/** @endcond */
44
45}
46
47#endif /* ThePEG_Switch_XH */
48