atlas  0.6
error.h
Go to the documentation of this file.
1 /*
2  This is error.h
3  Copyright (C) 2004,2005 Fokko du Cloux
4  Copyright (C) 2015 Marc van Leeuwen
5  part of the Atlas of Lie Groups and Representations
6 
7  For license information see the LICENSE file
8 */
9 
10 #ifndef ERROR_H /* guard against multiple inclusions */
11 #define ERROR_H
12 
13 #include <stdexcept>
14 
15 /******** type declarations *************************************************/
16 
17 namespace atlas {
18 
19 namespace error {
20 
21  struct FatalError;
22 
23  // i-o errors
24  struct InputError;
25 
26  // overflow errors
27  struct MemoryOverflow;
28  struct NumericOverflow;
29  struct NumericUnderflow;
30 
31  struct CartanError {};
32 
34 
35 }
36 
37 /******** type definitions **************************************************/
38 
39 namespace error {
40 
41 struct FatalError {
42  void operator() (const char*);
43 };
44 
45 // user abandoning input
46 struct InputError {
47  void operator() (const char*);
48 };
49 
50 // failure opening or writing output
51 struct OutputError {
52  void operator() (const char*);
53 };
54 
56  void operator() (const char*);
57 };
58 
60  void operator() (const char*);
61 };
62 
64  void operator() (const char*);
65 };
66 
68  void operator() (const char*);
69 };
70 
71 
72 // runtime errors for atlas
73 
74 struct Cayley_error : public std::runtime_error
75 {
76  Cayley_error() : std::runtime_error("Undefined Cayley transform") {}
77 };
78 
79  } // |namespace error|
80 
81 } // |namespace atlas|
82 
83 #endif
FatalError PrimesError
Definition: error.h:33
Definition: error.h:41
Definition: error.h:31
Definition: error.h:59
Definition: error.h:63
Definition: error.h:51
Definition: error.h:55
Definition: error.h:46
Cayley_error()
Definition: error.h:76
Definition: error.h:67
Definition: Atlas.h:38
Definition: error.h:74