(integerCode, customErrorCode)
| 852 | |
| 853 | class 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; |
nothing calls this directly
no test coverage detected