Mantid
Loading...
Searching...
No Matches
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
15inline void assertOrThrow(bool condition, std::string const &message) {
16 if (!condition)
17 throw std::runtime_error(message);
18}
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