MCPcopy Index your code
hub / github.com/nodejs/node / constructor

Method constructor

lib/internal/http2/util.js:854–860  ·  view source on GitHub ↗
(integerCode, customErrorCode)

Source from the content-addressed store, hash-verified

852
853class NghttpError extends Error {
854 constructor(integerCode, customErrorCode) {
855 super(customErrorCode ?
856 getMessage(customErrorCode, [], null) :
857 binding.nghttp2ErrorString(integerCode));
858 this.code = customErrorCode || 'ERR_HTTP2_ERROR';
859 this.errno = integerCode;
860 }
861
862 get [kIsNodeError]() {
863 return true;

Callers

nothing calls this directly

Calls 1

getMessageFunction · 0.85

Tested by

no test coverage detected