* 转换为字符串格式 * * @returns 字符串表示
()
| 93 | * @returns 字符串表示 |
| 94 | */ |
| 95 | toString(): string { |
| 96 | const detailsStr = this.details ? ` Details: ${JSON.stringify(this.details)}` : ''; |
| 97 | return `${this.name} [${this.code}]: ${this.message}${detailsStr}`; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /** |
no outgoing calls
no test coverage detected