commit | 34a0da00ede247266fcf4f8acc4671d11904cdf2 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Wed Oct 26 10:49:26 2022 +0100 |
committer | Alan Stokes <alanstokes@google.com> | Fri Nov 04 09:41:06 2022 +0000 |
tree | 14df514d45daea9da9503cd68dd0b88b044b3d64 | |
parent | 5ef60e68caee219ee2c15c9006a66f662a378284 [diff] |
Revamp exceptions Various changes, based on the comments on aosp/2192077 and the API guidelines: - Always rethrow RemoteException as a runtime exception. - Map the various other exceptions that VirtualizationService can return to VirtualMachineException for consistency - except for SecurityException (missing permissions) which will still be directly thrown. - Document the exceptions that can be thrown and when for each API function. - Always create the console & log pipes on demand, mostly so I don't have to document exactly when they might be null. - Use an exception rather than an Optional for getCid(). - Check for null return from nativeConnectToVsockServer() and throw. Bug: 243512115 Test: atest MicrodroidTests MicrodroidHostTests Change-Id: Ib5cb421bc9137db4d9dddada71f0098212b7d0da
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.