Home
last modified time | relevance | path

Searched refs:TransferError (Results 1 – 8 of 8) sorted by relevance

/external/pigweed/pw_transfer/java/main/dev/pigweed/pw_transfer/
DTransferError.java21 public class TransferError extends Exception { class
24 TransferError(String message, Throwable cause) { in TransferError() method in TransferError
29 TransferError(Transfer<?> transfer, Status error) { in TransferError() method in TransferError
33 TransferError(String msg, Status error) { in TransferError() method in TransferError
DTransferEventHandler.java120 transfer.terminate(new TransferError("A transfer for resource ID " in startTransferAsClient()
222 void sendChunk(Chunk chunk) throws TransferError { in sendChunk()
226 throw new TransferError("Failed to send chunk for write transfer", e); in sendChunk()
307 TransferError error = new TransferError( in onError()
DTransfer.java128 public final void terminate(TransferError error) { in terminate()
223 changeState(new Completed(new TransferError("Transfer " + sessionId + " restarted " in handleDisconnection()
278 changeState(new Completed(new TransferError(this, Status.ABORTED))); in sendChunk()
287 } catch (TransferError transferError) { in sendChunk()
498 future.setException(new TransferError(Transfer.this, status)); in Completed()
503 Completed(TransferError exception) { in Completed()
DBUILD.bazel25 "TransferError.java",
/external/pigweed/pw_transfer/java/test/dev/pigweed/pw_transfer/
DTransferClientTest.java130 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_failedPreconditionError_abortsAfterInitialPacket()
131 assertThat(((TransferError) thrown.getCause()).status()).isEqualTo(Status.INTERNAL); in legacy_read_failedPreconditionError_abortsAfterInitialPacket()
152 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_failedPreconditionErrorMaxRetriesTimes_aborts()
153 assertThat(((TransferError) thrown.getCause()).status()).isEqualTo(Status.INTERNAL); in legacy_read_failedPreconditionErrorMaxRetriesTimes_aborts()
372 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_multipleWithSameId_atSameTime_failsWithAlreadyExistsError()
373 assertThat(((TransferError) thrown.getCause()).status()).isEqualTo(Status.ALREADY_EXISTS); in legacy_read_multipleWithSameId_atSameTime_failsWithAlreadyExistsError()
384 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_sendErrorOnFirstPacket_fails()
401 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_sendErrorOnLaterPacket_aborts()
424 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_transferProtocolError_aborts()
426 assertThat(((TransferError) thrown.getCause()).status()).isEqualTo(Status.ALREADY_EXISTS); in legacy_read_transferProtocolError_aborts()
[all …]
/external/python/apitools/apitools/base/py/
Dexceptions.py160 class TransferError(CommunicationError): class
165 class TransferRetryError(TransferError):
170 class TransferInvalidError(TransferError):
/external/pigweed/pw_transfer/ts/
Dclient.ts107 throw new TransferError(transfer.id, transfer.status);
149 throw new TransferError(transfer.id, transfer.status);
271 class TransferError extends Error { class
/external/pigweed/pw_transfer/integration_test/
DJavaClient.java27 import dev.pigweed.pw_transfer.TransferError;
171 if (((TransferError) e.getCause()).status() != expected_status) { in ReadFromServer()
206 if (((TransferError) e.getCause()).status() != expected_status) { in WriteToServer()