OPAL (Object Oriented Parallel Accelerator Library)  2024.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 
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
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is and will automatically terminate your rights under this License parties who have received or from you under this License will not have their licenses terminated so long as such parties remain in full compliance You are not required to accept this since you have not signed it nothing else grants you permission to modify or distribute the Program or its derivative works These actions are prohibited by law if you do not accept this License by modifying or distributing the you indicate your acceptance of this License to do and all its terms and conditions for distributing or modifying the Program or works based on it Each time you redistribute the the recipient automatically receives a license from the original licensor to distribute or modify the Program subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You are not responsible for enforcing compliance by third parties to this License as a consequence of a court judgment or allegation of patent infringement or for any other reason(not limited to patent issues)
The base class for all OPAL exceptions.
Definition: OpalException.h:28
void handleGSLErrors(const char *reason, const char *file, int, int)