Skip to content

Commit 3c54e88

Browse files
author
p12
committed
images: Add inheritance diagrams for exception classes
1 parent 3ee1427 commit 3c54e88

9 files changed

Lines changed: 274 additions & 0 deletions
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "logic_error",
20+
tooltip = "std::logic_error",
21+
URL="cpp/error/logic_error"
22+
];
23+
24+
e3 [
25+
label = "domain_error",
26+
tooltip = "std::domain_error",
27+
fillcolor = lightgrey
28+
];
29+
30+
e1 -> e2;
31+
e2 -> e3;
32+
}​​
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "logic_error",
20+
tooltip = "std::logic_error",
21+
URL="cpp/error/logic_error"
22+
];
23+
24+
e3 [
25+
label = "invalid_argument",
26+
tooltip = "std::invalid_argument",
27+
fillcolor = lightgrey
28+
];
29+
30+
e1 -> e2;
31+
e2 -> e3;
32+
}​​
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "logic_error",
20+
tooltip = "std::logic_error",
21+
URL="cpp/error/logic_error"
22+
];
23+
24+
e3 [
25+
label = "length_error",
26+
tooltip = "std::length_error",
27+
fillcolor = lightgrey
28+
];
29+
30+
e1 -> e2;
31+
e2 -> e3;
32+
}​​
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "logic_error",
20+
tooltip = "std::logic_error",
21+
fillcolor = lightgrey
22+
];
23+
24+
e1 -> e2;
25+
}​​
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "logic_error",
20+
tooltip = "std::logic_error",
21+
URL="cpp/error/logic_error"
22+
];
23+
24+
e3 [
25+
label = "out_of_range",
26+
tooltip = "std::out_of_range",
27+
fillcolor = lightgrey
28+
];
29+
30+
e1 -> e2;
31+
e2 -> e3;
32+
}​​
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "runtime_error",
20+
tooltip = "std::runtime_error",
21+
URL="cpp/error/runtime_error"
22+
];
23+
24+
e3 [
25+
label = "overflow_error",
26+
tooltip = "std::overflow_error",
27+
fillcolor = lightgrey
28+
];
29+
30+
e1 -> e2;
31+
e2 -> e3;
32+
}​​
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "runtime_error",
20+
tooltip = "std::runtime_error",
21+
URL="cpp/error/runtime_error"
22+
];
23+
24+
e3 [
25+
label = "range_error",
26+
tooltip = "std::range_error",
27+
fillcolor = lightgrey
28+
];
29+
30+
e1 -> e2;
31+
e2 -> e3;
32+
}​​
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "runtime_error",
20+
tooltip = "std::runtime_error",
21+
fillcolor = lightgrey
22+
];
23+
24+
e1 -> e2;
25+
}​​
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
digraph inheritance {
2+
rankdir=LR
3+
4+
graph [dpi = 65, bgcolor=transparent];
5+
node [
6+
shape = box,
7+
fontname="DejaVu Serif, verdana, sans-serif", fontsize=14,
8+
width=1.6, height=0.5,
9+
style=filled, fillcolor=white
10+
];
11+
12+
e1 [
13+
label = "exception",
14+
tooltip = "std::exception",
15+
URL="cpp/error/exception"
16+
];
17+
18+
e2 [
19+
label = "runtime_error",
20+
tooltip = "std::runtime_error",
21+
URL="cpp/error/runtime_error"
22+
];
23+
24+
e3 [
25+
label = "underflow_error",
26+
tooltip = "std::underflow_error",
27+
fillcolor = lightgrey
28+
];
29+
30+
e1 -> e2;
31+
e2 -> e3;
32+
}​​

0 commit comments

Comments
 (0)