UNPKG
bunyamin
Version:
latest (1.6.3)
1.6.3
1.6.2
1.6.1
1.6.0
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
0.0.1
0.0.0
Bunyan-based logger for Node.js supporting Trace Event format
github.com/wix-incubator/bunyamin
bunyamin
/
src
/
decorator
/
StackTraceError.ts
15 lines
(13 loc)
•
286 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export
class
StackTraceError
extends
Error
{
constructor
(
) {
super
(
'Providing stack trace below:'
);
// eslint-disable-next-line unicorn/custom-error-definition
this
.
name
=
'StackTrace'
; }
static
empty
(
) {
return
{
message
:
''
,
stack
:
''
, }; } }