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