diff options
author | Martijn Coenen <maco@google.com> | 2013-02-11 12:47:32 -0800 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2013-02-12 13:43:30 -0800 |
commit | dd6b959546dfc7b8858fa8e08c4eea080f60b03a (patch) | |
tree | ee6d6f8e4f9f301a973d5ca450b70e08e05ebcf0 /nfc-extras/java/com/android/nfc_extras/EeNfcDisabledException.java | |
parent | 6fc736971a66eb4b461931a5e972d51b65bfa68f (diff) | |
download | frameworks_base-dd6b959546dfc7b8858fa8e08c4eea080f60b03a.zip frameworks_base-dd6b959546dfc7b8858fa8e08c4eea080f60b03a.tar.gz frameworks_base-dd6b959546dfc7b8858fa8e08c4eea080f60b03a.tar.bz2 |
Add exception types for NfcEe operations.
To allow apps to present a better UI in the
different failure cases.
Bug: 4304698
Change-Id: Ia378cc5530c1a7488f38a4be84f9fed8c2aa8c86
Diffstat (limited to 'nfc-extras/java/com/android/nfc_extras/EeNfcDisabledException.java')
-rw-r--r-- | nfc-extras/java/com/android/nfc_extras/EeNfcDisabledException.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nfc-extras/java/com/android/nfc_extras/EeNfcDisabledException.java b/nfc-extras/java/com/android/nfc_extras/EeNfcDisabledException.java new file mode 100644 index 0000000..091db28 --- /dev/null +++ b/nfc-extras/java/com/android/nfc_extras/EeNfcDisabledException.java @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2011, 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 com.android.nfc_extras; + +public class EeNfcDisabledException extends EeIOException { + public EeNfcDisabledException() { + super(); + } + + public EeNfcDisabledException(String message) { + super(message); + } +} |