OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
src
src
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
19
#include "
Utilities/OpalException.h
"
20
21
inline
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
handleGSLErrors
void handleGSLErrors(const char *reason, const char *file, int, int)
Definition:
GSLErrorHandling.h:21
OpalException.h
OpalException
The base class for all OPAL exceptions.
Definition:
OpalException.h:28
Generated on Wed Aug 25 2021 16:41:04 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.1