MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / makeError

Method makeError

src/main/java/org/htmlunit/util/brotli/Utils.java:151–163  ·  view source on GitHub ↗
(State s, int code)

Source from the content-addressed store, hash-verified

149 }
150
151 static int makeError(State s, int code) {
152 if (code >= BROTLI_OK) {
153 return code;
154 }
155 if (s.runningState >= 0) {
156 s.runningState = code; // Only the first error is remembered.
157 }
158 // TODO(eustas): expand codes to messages, if ever necessary.
159 if (code <= BROTLI_PANIC) {
160 throw new IllegalStateException("Brotli error code: " + code);
161 }
162 throw new BrotliRuntimeException("Error code: " + code);
163 }
164}

Callers 15

readInputMethod · 0.95
readMoreInputMethod · 0.95
checkHealthMethod · 0.95
jumpToByteBoundaryMethod · 0.95
copyRawBytesMethod · 0.95
enableEagerOutputMethod · 0.95
enableLargeWindowMethod · 0.95
attachDictionaryChunkMethod · 0.95
initStateMethod · 0.95
closeMethod · 0.95
decodeMetaBlockLengthMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected