Home
last modified time | relevance | path

Searched refs:ioException (Results 1 – 25 of 26) sorted by relevance

12

/external/volley/core/src/main/java/com/android/volley/toolbox/
DAsyncHttpStack.java49 void onError(IOException ioException); in onError() argument
134 public void onError(IOException ioException) { in executeRequest()
138 ioException, in executeRequest()
154 } else if (response.ioException != null) { in executeRequest()
155 throw response.ioException; in executeRequest()
163 IOException ioException; field in AsyncHttpStack.Response
168 @Nullable IOException ioException, in Response() argument
171 this.ioException = ioException; in Response()
DBasicAsyncNetwork.java195 public void onError(IOException ioException) { in performRequest()
199 ioException, in performRequest()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DHttp2.java107 throw ioException("Expected a connection header but was %s", connectionPreface.utf8()); in readConnectionPreface()
132 throw ioException("FRAME_SIZE_ERROR: %s", length); in nextFrame()
185 if (streamId == 0) throw ioException("PROTOCOL_ERROR: TYPE_HEADERS streamId == 0"); in readHeaders()
222 throw ioException("PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA"); in readData()
234 if (length != 5) throw ioException("TYPE_PRIORITY length: %d != 5", length); in readPriority()
235 if (streamId == 0) throw ioException("TYPE_PRIORITY streamId == 0"); in readPriority()
249 if (length != 4) throw ioException("TYPE_RST_STREAM length: %d != 4", length); in readRstStream()
250 if (streamId == 0) throw ioException("TYPE_RST_STREAM streamId == 0"); in readRstStream()
254 throw ioException("TYPE_RST_STREAM unexpected error code: %d", errorCodeInt); in readRstStream()
261 if (streamId != 0) throw ioException("TYPE_SETTINGS streamId != 0"); in readSettings()
[all …]
DSpdy3.java215 if (length != 8) throw ioException("TYPE_RST_STREAM length: %d != 8", length); in readRstStream()
220 throw ioException("TYPE_RST_STREAM unexpected error code: %d", errorCodeInt); in readRstStream()
233 if (length != 8) throw ioException("TYPE_WINDOW_UPDATE length: %d != 8", length); in readWindowUpdate()
238 if (increment == 0) throw ioException("windowSizeIncrement was 0", increment); in readWindowUpdate()
243 if (length != 4) throw ioException("TYPE_PING length: %d != 4", length); in readPing()
250 if (length != 8) throw ioException("TYPE_GOAWAY length: %d != 8", length); in readGoAway()
255 throw ioException("TYPE_GOAWAY unexpected error code: %d", errorCodeInt); in readGoAway()
263 throw ioException("TYPE_SETTINGS length: %d != 4 + 8 * %d", length, numberOfEntries); in readSettings()
277 private static IOException ioException(String message, Object... args) throws IOException { in ioException() method in Spdy3.Reader
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DHttp2.java109 throw ioException("Expected a connection header but was %s", connectionPreface.utf8()); in readConnectionPreface()
134 throw ioException("FRAME_SIZE_ERROR: %s", length); in nextFrame()
187 if (streamId == 0) throw ioException("PROTOCOL_ERROR: TYPE_HEADERS streamId == 0"); in readHeaders()
224 throw ioException("PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA"); in readData()
236 if (length != 5) throw ioException("TYPE_PRIORITY length: %d != 5", length); in readPriority()
237 if (streamId == 0) throw ioException("TYPE_PRIORITY streamId == 0"); in readPriority()
251 if (length != 4) throw ioException("TYPE_RST_STREAM length: %d != 4", length); in readRstStream()
252 if (streamId == 0) throw ioException("TYPE_RST_STREAM streamId == 0"); in readRstStream()
256 throw ioException("TYPE_RST_STREAM unexpected error code: %d", errorCodeInt); in readRstStream()
263 if (streamId != 0) throw ioException("TYPE_SETTINGS streamId != 0"); in readSettings()
[all …]
DSpdy3.java217 if (length != 8) throw ioException("TYPE_RST_STREAM length: %d != 8", length); in readRstStream()
222 throw ioException("TYPE_RST_STREAM unexpected error code: %d", errorCodeInt); in readRstStream()
235 if (length != 8) throw ioException("TYPE_WINDOW_UPDATE length: %d != 8", length); in readWindowUpdate()
240 if (increment == 0) throw ioException("windowSizeIncrement was 0", increment); in readWindowUpdate()
245 if (length != 4) throw ioException("TYPE_PING length: %d != 4", length); in readPing()
252 if (length != 8) throw ioException("TYPE_GOAWAY length: %d != 8", length); in readGoAway()
257 throw ioException("TYPE_GOAWAY unexpected error code: %d", errorCodeInt); in readGoAway()
265 throw ioException("TYPE_SETTINGS length: %d != 4 + 8 * %d", length, numberOfEntries); in readSettings()
279 private static IOException ioException(String message, Object... args) throws IOException { in ioException() method in Spdy3.Reader
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/
DFakeFileBackend.java121 IOException ioException; in throwIf() local
123 ioException = failureMap.get(type); in throwIf()
125 if (ioException != null) { in throwIf()
126 throw ioException; in throwIf()
172 IOException ioException; in openForWrite() local
174 ioException = failureMap.get(OperationType.WRITE_STREAM); in openForWrite()
176 if (ioException != null) { in openForWrite()
177 return new FailingOutputStream(out, ioException); in openForWrite()
186 IOException ioException; in openForAppend() local
188 ioException = failureMap.get(OperationType.WRITE_STREAM); in openForAppend()
[all …]
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/
DHttp2.java112 throw ioException("Expected a connection header but was %s", connectionPreface.utf8()); in readConnectionPreface()
137 throw ioException("FRAME_SIZE_ERROR: %s", length); in nextFrame()
190 if (streamId == 0) throw ioException("PROTOCOL_ERROR: TYPE_HEADERS streamId == 0"); in readHeaders()
227 throw ioException("PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA"); in readData()
239 if (length != 5) throw ioException("TYPE_PRIORITY length: %d != 5", length); in readPriority()
240 if (streamId == 0) throw ioException("TYPE_PRIORITY streamId == 0"); in readPriority()
254 if (length != 4) throw ioException("TYPE_RST_STREAM length: %d != 4", length); in readRstStream()
255 if (streamId == 0) throw ioException("TYPE_RST_STREAM streamId == 0"); in readRstStream()
259 throw ioException("TYPE_RST_STREAM unexpected error code: %d", errorCodeInt); in readRstStream()
266 if (streamId != 0) throw ioException("TYPE_SETTINGS streamId != 0"); in readSettings()
[all …]
/external/cbor-java/src/main/java/co/nstant/in/cbor/encoder/
DAbstractEncoder.java31 } catch (IOException ioException) { in encodeTypeChunked()
32 throw new CborException(ioException); in encodeTypeChunked()
118 } catch (IOException ioException) { in write()
119 throw new CborException(ioException); in write()
126 } catch (IOException ioException) { in write()
127 throw new CborException(ioException); in write()
/external/robolectric/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DFakeHttpLayer.java283 private IOException ioException; field in FakeHttpLayer.RequestMatcherResponseRule
292 public RequestMatcherResponseRule(RequestMatcher requestMatcher, IOException ioException) { in RequestMatcherResponseRule() argument
294 this.ioException = ioException; in RequestMatcherResponseRule()
315 if (ioException != null) throw ioException; in getResponse()
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DFakeHttpLayer.java278 private IOException ioException; field in FakeHttpLayer.RequestMatcherResponseRule
287 public RequestMatcherResponseRule(RequestMatcher requestMatcher, IOException ioException) { in RequestMatcherResponseRule() argument
289 this.ioException = ioException; in RequestMatcherResponseRule()
310 if (ioException != null) throw ioException; in getResponse()
/external/javapoet/src/test/java/com/squareup/javapoet/
DMethodSpecTest.java346 ClassName ioException = ClassName.get(IOException.class); in duplicateExceptionsIgnored() local
349 .addException(ioException) in duplicateExceptionsIgnored()
352 .addException(ioException) in duplicateExceptionsIgnored()
354 assertThat(methodSpec.exceptions).isEqualTo(Arrays.asList(ioException, timeoutException)); in duplicateExceptionsIgnored()
355 assertThat(methodSpec.toBuilder().addException(ioException).build().exceptions) in duplicateExceptionsIgnored()
356 .isEqualTo(Arrays.asList(ioException, timeoutException)); in duplicateExceptionsIgnored()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/
DGenerateCodeTask.java86 } catch (IOException ioException) { in execute()
87 throw new BuildException("IOException: " + ioException.toString()); in execute()
/external/cbor-java/src/main/java/co/nstant/in/cbor/decoder/
DAbstractDecoder.java32 } catch (IOException ioException) { in nextSymbol()
33 throw new CborException(ioException); in nextSymbol()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithThrowablesTest.java139 IOException ioException = new IOException(); in shouldAllowSettingCheckedException() local
141 when(reader.read()).thenThrow(ioException); in shouldAllowSettingCheckedException()
143 exception.expect(sameInstance(ioException)); in shouldAllowSettingCheckedException()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/arj/
DArjArchiveInputStream.java70 } catch (final IOException ioException) { in ArjArchiveInputStream()
71 throw new ArchiveException(ioException.getMessage(), ioException); in ArjArchiveInputStream()
/external/cbor-java/src/main/java/co/nstant/in/cbor/
DCborDecoder.java125 } catch (IOException ioException) { in decodeNext()
126 throw new CborException(ioException); in decodeNext()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowFileObserver.java49 } catch (IOException ioException) { in ShadowFileObserver()
50 throw new RuntimeException(ioException); in ShadowFileObserver()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/base64/
DBase64BinaryParsingTest.java245 …IOException ioException = new IOException("Failed (variant "+variant+", data length "+len+"): "+e.… in _testBase64Text()
246 ioException.initCause(e); in _testBase64Text()
247 throw ioException; in _testBase64Text()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DPlatform.java237 IOException ioException = new IOException("Exception in connect"); in connectSocket()
238 ioException.initCause(e); in connectSocket()
239 throw ioException; in connectSocket()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/downloader/
DDeltaFileDownloaderCallbackImpl.java137 ioException -> { in onDownloadComplete()
141 exception.addSuppressed(ioException); in onDownloadComplete()
DDownloaderCallbackImpl.java139 ioException -> { in onDownloadComplete()
143 exception.addSuppressed(ioException); in onDownloadComplete()
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/
DPlatform.java380 IOException ioException = new IOException("Exception in connect"); in connectSocket()
381 ioException.initCause(se); in connectSocket()
382 throw ioException; in connectSocket()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DGrpcUtil.java731 } catch (IOException ioException) {
733 log.log(Level.WARNING, "exception caught in closeQuietly", ioException);
DServerImpl.java608 } catch (IOException ioException) { in messagesAvailable()
610 log.log(Level.WARNING, "Exception closing stream", ioException); in messagesAvailable()

12