home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / sun / applet / AppletIOException.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  951 b   |  24 lines

  1. package sun.applet;
  2.  
  3. import java.io.IOException;
  4.  
  5. public class AppletIOException extends IOException {
  6.    private String key;
  7.    private Object msgobj;
  8.    private static AppletMessageHandler amh = new AppletMessageHandler("appletioexception");
  9.  
  10.    public AppletIOException(String var1) {
  11.       super(var1);
  12.       this.key = var1;
  13.    }
  14.  
  15.    public AppletIOException(String var1, Object var2) {
  16.       this(var1);
  17.       this.msgobj = var2;
  18.    }
  19.  
  20.    public String getLocalizedMessage() {
  21.       return this.msgobj != null ? amh.getMessage(this.key, this.msgobj) : amh.getMessage(this.key);
  22.    }
  23. }
  24.