diff options
| author | Alex Klyubin <klyubin@google.com> | 2015-04-03 19:33:27 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-03 19:33:27 +0000 |
| commit | 376b23e6fdda35cc6fa61ea9a3c10d109fe2d601 (patch) | |
| tree | 32f74570c8bd757ec3fd99fdb06efae0b25660b3 /keystore/java/android/security/KeyStoreException.java | |
| parent | e797eb2eea885f086465e47efc464adcd0d7acea (diff) | |
| parent | 08963653fc9434d2f50d3c8e64c757138efd102e (diff) | |
| download | frameworks_base-376b23e6fdda35cc6fa61ea9a3c10d109fe2d601.zip frameworks_base-376b23e6fdda35cc6fa61ea9a3c10d109fe2d601.tar.gz frameworks_base-376b23e6fdda35cc6fa61ea9a3c10d109fe2d601.tar.bz2 | |
am 08963653: Merge "Rename KeymasterException to KeyStoreException."
* commit '08963653fc9434d2f50d3c8e64c757138efd102e':
Rename KeymasterException to KeyStoreException.
Diffstat (limited to 'keystore/java/android/security/KeyStoreException.java')
| -rw-r--r-- | keystore/java/android/security/KeyStoreException.java | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/keystore/java/android/security/KeyStoreException.java b/keystore/java/android/security/KeyStoreException.java new file mode 100644 index 0000000..88e768c --- /dev/null +++ b/keystore/java/android/security/KeyStoreException.java @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2015 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.security; + +/** + * KeyStore/keymaster exception with positive error codes coming from the KeyStore and negative + * ones from keymaster. + * + * @hide + */ +public class KeyStoreException extends Exception { + + private final int mErrorCode; + + public KeyStoreException(int errorCode, String message) { + super(message); + mErrorCode = errorCode; + } + + public int getErrorCode() { + return mErrorCode; + } +} |
