(
code: SetupErrorCode,
message: string,
context: SetupErrorContext = {},
cause?: Error,
)
| 27 | public override readonly cause?: Error; |
| 28 | |
| 29 | constructor( |
| 30 | code: SetupErrorCode, |
| 31 | message: string, |
| 32 | context: SetupErrorContext = {}, |
| 33 | cause?: Error, |
| 34 | ) { |
| 35 | super(message, { cause }); |
| 36 | this.name = "SetupError"; |
| 37 | this.code = code; |
| 38 | this.context = context; |
| 39 | this.cause = cause; |
| 40 | |
| 41 | if (Error.captureStackTrace) { |
| 42 | Error.captureStackTrace(this, SetupError); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | toJSON() { |
| 47 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected