3 // Switch.xh is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2011 Leif Lonnblad
6 // ThePEG is licenced under version 2 of the GPL, see COPYING for details.
7 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
9 #ifndef ThePEG_Switch_XH
10 #define ThePEG_Switch_XH
12 // This is the declarations of the exception classes used by the
17 #include "InterfaceBase.xh"
21 /** @cond EXCEPTIONCLASSES */
22 /** Exception class used by Switch if variable is set to a value which
23 * is not a listed option. */
24 struct SwExSetOpt: public InterfaceException {
25 /** Standard constructor. */
26 SwExSetOpt(const InterfaceBase & i, const InterfacedBase & o, long v);
29 /** Exception class used by Switch if an unkown error
31 struct SwExSetUnknown: public InterfaceException {
32 /** Standard constructor. */
33 SwExSetUnknown(const InterfaceBase & i, const InterfacedBase & o, long v);
36 /** Exception class used by Switch if an unkown error
38 struct SwExGetUnknown: public InterfaceException {
39 /** Standard constructor. */
40 SwExGetUnknown(const InterfaceBase & i, const InterfacedBase & o,
47 #endif /* ThePEG_Switch_XH */