UNPKG

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