* Returns the explicit user-facing message or a safe fallback from `cause`. * * @since 4.0.0
()
| 545 | * @since 4.0.0 |
| 546 | */ |
| 547 | override get message() { |
| 548 | if (this.userMessage) return this.userMessage |
| 549 | if (typeof this.cause === "string" && this.cause) return this.cause |
| 550 | if (this.cause instanceof Error && this.cause.message) return this.cause.message |
| 551 | return "An error occurred" |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected