Debian Codegraph @

sdk-common/src/main/java/com/android/ide/common/signing/KeytoolException.java

raw
1 /*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.android.ide.common.signing;
18
19 public class KeytoolException extends Exception {
20 /** default serial uid */
21 private static final long serialVersionUID = 1L;
22 private String mJavaHome = null;
23 private String mCommandLine = null;
24
25 KeytoolException(String message) {
26 super(message);
27 }
28
29 KeytoolException(String message, Throwable t) {
30 super(message, t);
31 }
32
33 KeytoolException(String message, String javaHome, String commandLine) {
34 super(message);
35
36 mJavaHome = javaHome;
37 mCommandLine = commandLine;
38 }
39
40 public String getJavaHome() {
41 return mJavaHome;
42 }
43
44 public String getCommandLine() {
45 return mCommandLine;
46 }
47
48 }