Method
constructor
(msg: string, w3cStatus: number, w3cErrorSignature: string, cause?: Error)
Source from the content-addressed store, hash-verified
| 47 | protected _stacktrace: string | undefined; |
| 48 | |
| 49 | constructor(msg: string, w3cStatus: number, w3cErrorSignature: string, cause?: Error) { |
| 50 | super(msg, cause); |
| 51 | this.error = w3cErrorSignature ?? UnknownError.error(); |
| 52 | this.w3cStatus = w3cStatus ?? UnknownError.w3cStatus(); |
| 53 | this._stacktrace = undefined; |
| 54 | } |
| 55 | |
| 56 | get stacktrace() { |
| 57 | return this._stacktrace || this.stack; |
Callers
nothing calls this directly
Tested by
no test coverage detected