diff options
Diffstat (limited to 'dex')
-rw-r--r-- | dex/src/main/java/com/android/dex/DexException.java | 2 | ||||
-rw-r--r-- | dex/src/main/java/com/android/dex/DexIndexOverflowException.java | 30 |
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); + } +} |