MCPcopy
hub / github.com/google/brotli / makeError

Method makeError

java/org/brotli/dec/Utils.java:150–162  ·  view source on GitHub ↗
(State s, int code)

Source from the content-addressed store, hash-verified

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

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