Method
constructor
(message: string = '', cause?: Error)
Source from the content-addressed store, hash-verified
| 381 | |
| 382 | export class JavaScriptError extends ProtocolError { |
| 383 | constructor(message: string = '', cause?: Error) { |
| 384 | super( |
| 385 | message || 'An error occurred while executing user supplied JavaScript.', |
| 386 | JavaScriptError.w3cStatus(), |
| 387 | JavaScriptError.error(), |
| 388 | cause, |
| 389 | ); |
| 390 | } |
| 391 | static w3cStatus() { |
| 392 | return HTTPStatusCodes.INTERNAL_SERVER_ERROR; |
| 393 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected