Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
Batch
AssertOrThrow.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
11
#pragma once
12
#include <stdexcept>
13
#include <string>
14
15
inline
void
assertOrThrow
(
bool
condition, std::string
const
&message) {
16
if
(!condition)
17
throw
std::runtime_error(message);
18
}
assertOrThrow
void assertOrThrow(bool condition, std::string const &message)
See the developer documentation for Batch Widget at developer.mantidproject.org/BatchWidget/index....
Definition:
AssertOrThrow.h:15
Generated on Tue Jan 3 2023 11:58:01 for Mantid by
1.9.5