summaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorBenoit Lamarche <benoitlamarche@google.com>2013-12-02 19:04:48 +0100
committerBenoit Lamarche <benoitlamarche@google.com>2013-12-03 10:40:46 +0100
commit464c226afc28aa64c293bdc4eec3b8b348bc422a (patch)
tree2b44299e49a52648e4c2e4b3708b4e21fa4689e0 /dex
parent3cfbe5741da8985688dbede63dff59e8f0d511e1 (diff)
downloadlibcore-464c226afc28aa64c293bdc4eec3b8b348bc422a.zip
libcore-464c226afc28aa64c293bdc4eec3b8b348bc422a.tar.gz
libcore-464c226afc28aa64c293bdc4eec3b8b348bc422a.tar.bz2
Add DexIndexOverflowException
Change-Id: I51852fa88832db8b20ad65f091a0eb9e48fa3491
Diffstat (limited to 'dex')
-rw-r--r--dex/src/main/java/com/android/dex/DexException.java2
-rw-r--r--dex/src/main/java/com/android/dex/DexIndexOverflowException.java30
2 files changed, 31 insertions, 1 deletions
diff --git a/dex/src/main/java/com/android/dex/DexException.java b/dex/src/main/java/com/android/dex/DexException.java
index a30a46f..ee0af18 100644
--- a/dex/src/main/java/com/android/dex/DexException.java
+++ b/dex/src/main/java/com/android/dex/DexException.java
@@ -22,7 +22,7 @@ import com.android.dex.util.ExceptionWithContext;
* Thrown when there's a format problem reading, writing, or generally
* processing a dex file.
*/
-public final class DexException extends ExceptionWithContext {
+public class DexException extends ExceptionWithContext {
public DexException(String message) {
super(message);
}
diff --git a/dex/src/main/java/com/android/dex/DexIndexOverflowException.java b/dex/src/main/java/com/android/dex/DexIndexOverflowException.java
new file mode 100644
index 0000000..3226207
--- /dev/null
+++ b/dex/src/main/java/com/android/dex/DexIndexOverflowException.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2013 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.dex;
+
+/**
+ * Thrown when there's an index overflow writing a dex file.
+ */
+public final class DexIndexOverflowException extends DexException {
+ public DexIndexOverflowException(String message) {
+ super(message);
+ }
+
+ public DexIndexOverflowException(Throwable cause) {
+ super(cause);
+ }
+}