01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14: * License for the specific language governing permissions and limitations under
15: * the License.
16: */
17:
18: package org.apache.harmony.tools.keytool;
19:
20: /**
21: * Class representing the exceptions specific for keytool.
22: */
23: public class KeytoolException extends Exception {
24:
25: /**
26: * serial version UID.
27: */
28: private static final long serialVersionUID = -2930629442696213997L;
29:
30: /**
31: * Default constructor.
32: */
33: public KeytoolException() {
34: super ();
35: }
36:
37: /**
38: * @param msg - exception message to print
39: */
40: public KeytoolException(String msg) {
41: super (msg);
42: }
43:
44: /**
45: * @param msg - exception message to print
46: * @param cause - throwable that caused this exception to be thrown
47: */
48: public KeytoolException(String msg, Throwable cause) {
49: super (msg, cause);
50: }
51:
52: /**
53: * @param cause - throwable that caused this exception to be thrown
54: */
55: public KeytoolException(Throwable cause) {
56: super(cause);
57: }
58: }
|