From 464c226afc28aa64c293bdc4eec3b8b348bc422a Mon Sep 17 00:00:00 2001 From: Benoit Lamarche Date: Mon, 2 Dec 2013 19:04:48 +0100 Subject: Add DexIndexOverflowException Change-Id: I51852fa88832db8b20ad65f091a0eb9e48fa3491 --- .../main/java/com/android/dex/DexException.java | 2 +- .../com/android/dex/DexIndexOverflowException.java | 30 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 dex/src/main/java/com/android/dex/DexIndexOverflowException.java (limited to 'dex') 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); + } +} -- cgit v1.1