1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
22 import java.util.Hashtable; |
22 import java.util.Hashtable; |
23 |
23 |
24 /** |
24 /** |
25 * Base class for classes defining localized error messages. |
25 * Base class for classes defining localized error messages. |
26 * |
26 * |
27 * @author Nokia Corporation |
|
28 * @version 1.0 |
|
29 * @see InstallerExceptionBase |
27 * @see InstallerExceptionBase |
30 */ |
28 */ |
31 abstract public class ErrorMessageBase |
29 abstract public class ErrorMessageBase |
32 { |
30 { |
33 /*** ----------------------------- PUBLIC ------------------------------ */ |
31 /*** ----------------------------- PUBLIC ------------------------------ */ |
34 |
32 |
35 public static final int NO_MSG = 0; // Used when the error message is not available. |
33 public static final int NO_MSG = 0; // Used when the error message is not available. |
|
34 |
|
35 /** Start of Runtime error message ids range. */ |
|
36 public static final int RUNTIME_RANGE_START = 0; |
|
37 /** End of Runtime error message ids range. */ |
|
38 public static final int RUNTIME_RANGE_END = 99; |
|
39 /** Start of Installer error message ids range. */ |
|
40 public static final int INSTALLER_RANGE_START = 100; |
|
41 /** End of Installer error message ids range. */ |
|
42 public static final int INSTALLER_RANGE_END = 199; |
|
43 /** Start of Security error message ids range. */ |
|
44 public static final int SECURITY_RANGE_START = 200; |
|
45 /** End of Security error message ids range. */ |
|
46 public static final int SECURITY_RANGE_END = 299; |
36 |
47 |
37 /** |
48 /** |
38 * Method for retrieving the message of a certain error. |
49 * Method for retrieving the message of a certain error. |
39 * |
50 * |
40 * @param errorCode The error code whose message is queried |
51 * @param errorCode The error code whose message is queried |