01: /*
02: * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: //
07: package com.sun.portal.ffj.deploy;
08:
09: //
10: public class DeployException extends Exception {
11: //
12: private String localizedMessage;
13:
14: /** Create an exception.
15: * To be displayed to the user, the localized message must
16: * differ from the regular detail message, as a signal that it
17: * is localized. Otherwise, the user is presented with a generic
18: * message without details.
19: * @param detailMessage an invisible debugging-only message
20: * @param localizedMessage the message that will be displayed to the user if needed
21: */
22: public DeployException(String detailMessage, String localizedMessage) {
23: super (detailMessage);
24: this .localizedMessage = localizedMessage;
25: }
26:
27: //
28: //
29: //
30: public String getLocalizedMessage() {
31: return localizedMessage;
32: }
33:
34: //
35: //
36: //
37: }
|