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.filesystems;
08:
09: import java.io.IOException;
10:
11: /** Exception generated by the file system.
12: * Might be visible to the user under many circumstances,
13: * for example if a file could not be modified because of a lock.
14: *
15: * @author as133206
16: */
17: public class PSFileSystemException extends IOException {
18:
19: private String localizedMessage;
20:
21: /** Create an exception.
22: * To be displayed to the user, the localized message must
23: * differ from the regular detail message, as a signal that it
24: * is localized. Otherwise, the user is presented with a generic
25: * message without details.
26: * @param detailMessage an invisible debugging-only message
27: * @param localizedMessage the message that will be displayed to the user if needed
28: */
29: public PSFileSystemException(String detailMessage,
30: String localizedMessage) {
31: super (detailMessage);
32: this .localizedMessage = localizedMessage;
33: }
34:
35: public String getLocalizedMessage() {
36: return localizedMessage;
37: }
38:
39: }
|