1 | const exceptions = []
|
2 |
|
3 | function error(err) {
|
4 | console.error(err)
|
5 | exceptions.unshift(err)
|
6 | }
|
7 |
|
8 | function clear() {
|
9 | exceptions.splice(0, exceptions.length)
|
10 | }
|
11 |
|
12 | function getExceptions() {
|
13 | return exceptions
|
14 | }
|
15 |
|
16 |
|
17 | export default {
|
18 | error,
|
19 | clear,
|
20 | getExceptions
|
21 | } |
\ | No newline at end of file |