()
| 44 | } |
| 45 | |
| 46 | toJSON() { |
| 47 | return { |
| 48 | name: this.name, |
| 49 | message: this.message, |
| 50 | code: this.code, |
| 51 | context: this.context, |
| 52 | cause: this.cause |
| 53 | ? { name: this.cause.name, message: this.cause.message } |
| 54 | : undefined, |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | getDetailedMessage(): string { |
| 59 | const contextStr = Object.entries(this.context) |
no outgoing calls
no test coverage detected