diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-01-28 18:01:44 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-01-28 18:01:44 +0000 |
commit | 4844c2065bc9ff687954aab9faf0e5ddb7ff1c35 (patch) | |
tree | cad4b72aaa461412c1923e89c7f722a77dedc529 /keystore/java/android/security/KeyStoreSecurityLevel.java | |
parent | 033aefcb06c7f32378b17ba8f58c2b85ffa0988a (diff) | |
parent | a7a9e7af3d6c2704a451eb1c3641bd02b05879cc (diff) |
Merge "Keystore 2.0: Add human readable strings to Keystore exceptions."
Diffstat (limited to 'keystore/java/android/security/KeyStoreSecurityLevel.java')
-rw-r--r-- | keystore/java/android/security/KeyStoreSecurityLevel.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystore/java/android/security/KeyStoreSecurityLevel.java b/keystore/java/android/security/KeyStoreSecurityLevel.java index 3ef4aa5b7ec3..bc669bae056b 100644 --- a/keystore/java/android/security/KeyStoreSecurityLevel.java +++ b/keystore/java/android/security/KeyStoreSecurityLevel.java @@ -52,7 +52,7 @@ public class KeyStoreSecurityLevel { try { return request.execute(); } catch (ServiceSpecificException e) { - throw new KeyStoreException(e.errorCode, ""); + throw KeyStore2.getKeyStoreException(e.errorCode); } catch (RemoteException e) { // Log exception and report invalid operation handle. // This should prompt the caller drop the reference to this operation and retry. @@ -114,7 +114,7 @@ public class KeyStoreSecurityLevel { break; } default: - throw new KeyStoreException(e.errorCode, ""); + throw KeyStore2.getKeyStoreException(e.errorCode); } } catch (RemoteException e) { Log.w(TAG, "Cannot connect to keystore", e); |