exceptions.h
1 #pragma once
2 #include <stdexcept>
3 
4 namespace morphio {
8 class MorphioError: public std::runtime_error
9 {
10  public:
11  explicit MorphioError(const std::string& _msg)
12  : std::runtime_error(_msg) {}
13 };
14 
16 {
17  public:
18  explicit NotImplementedError(const std::string& _msg)
19  : MorphioError(_msg) {}
20 };
21 
23 {
24  public:
25  explicit RawDataError(const std::string& _msg)
26  : MorphioError(_msg) {}
27 };
28 
30 {
31  public:
32  explicit UnknownFileType(const std::string& _msg)
33  : MorphioError(_msg) {}
34 };
35 
36 class SomaError: public MorphioError
37 {
38  public:
39  explicit SomaError(const std::string& _msg)
40  : MorphioError(_msg) {}
41 };
42 
44 {
45  public:
46  explicit IDSequenceError(const std::string& _msg)
47  : RawDataError(_msg) {}
48 };
49 
51 {
52  public:
53  explicit MultipleTrees(const std::string& _msg)
54  : RawDataError(_msg) {}
55 };
56 
58 {
59  public:
60  explicit MissingParentError(const std::string& _msg)
61  : RawDataError(_msg) {}
62 };
63 
65 {
66  public:
67  explicit SectionBuilderError(const std::string& _msg)
68  : RawDataError(_msg) {}
69 };
70 
72 {
73  public:
74  explicit WriterError(const std::string& _msg)
75  : MorphioError(_msg) {}
76 };
77 } // namespace morphio
Definition: exceptions.h:15
Definition: exceptions.h:64
Definition: exceptions.h:43
Definition: exceptions.h:36
Definition: exceptions.h:8
Definition: exceptions.h:22
Definition: endoplasmic_reticulum.h:5
Definition: exceptions.h:50
Definition: exceptions.h:29
Definition: exceptions.h:71
Definition: exceptions.h:57