this.pendingRequests.fail(token.getMessageId(), new Exception ("I/O exception")); //TODO err message?
}
}
break;
case BYTES: {
final FileRead fileReadPayload = (FileRead)message.payload;
final CompletionToken token = fileReadPayload.getToken();
this.transcript.traceDebugging ("processing the BYTE response for pending request with token `%s`...", token.getMessageId ());
this.pendingRequests.succeed(token.getMessageId(), fileReadPayload.getData().toByteArray());
}
break;
default: {
this.transcript.traceWarning ("processing unexpected message of type `%s`; ignoring...", message.specification);
}