OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
EarlyLeaveException.h
Go to the documentation of this file.
1//
2// This exception class is used to intentionally exit OPAL even if no
3// error occurred. It is used in case of the tune calculation with
4// the matched distribution option.
5//
6// Copyright (c) 2008-2019
7// Paul Scherrer Institut, Villigen PSI, Switzerland
8// All rights reserved.
9//
10// OPAL is licensed under GNU GPL version 3.
11//
12
13#ifndef OPAL_EARLY_LEAVE_EXCEPTION_H
14#define OPAL_EARLY_LEAVE_EXCEPTION_H
15
17
22
23public:
24
29 explicit EarlyLeaveException(const std::string &meth, const std::string &msg);
30
32 virtual ~EarlyLeaveException();
33
36
39
40private:
41
42 // Not implemented.
44};
45
46#endif
The abstract base class for all exceptions in CLASSIC.
virtual const std::string & what() const
Return the message string for the exception.
virtual const std::string & where() const
Return the name of the method or function which detected the exception.
EarlyLeaveException()=delete