OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
GSLErrorHandling.h
Go to the documentation of this file.
1//
2// Copyright (c) 2008 - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
3//
4// All rights reserved
5//
6// This file is part of OPAL.
7//
8// OPAL is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation, either version 3 of the License, or
11// (at your option) any later version.
12//
13// You should have received a copy of the GNU General Public License
14// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
15//
16#ifndef GSLERRORHANDLING_H
17#define GSLERRORHANDLING_H
18
20
21inline void handleGSLErrors(const char *reason,
22 const char *file,
23 int /*line*/,
24 int /*gsl_errno*/) {
25 throw OpalException(file, reason);
26}
27
28#endif
void handleGSLErrors(const char *reason, const char *file, int, int)
The base class for all OPAL exceptions.
Definition: OpalException.h:28