Include OSX UI elements.
[debian/openrocket] / core / src / net / sf / openrocket / l10n / LocalizedIOException.java
1 package net.sf.openrocket.l10n;
2
3 import java.io.IOException;
4
5 import net.sf.openrocket.startup.Application;
6
7 public class LocalizedIOException extends IOException {
8         
9         private static final Translator trans = Application.getTranslator();
10         
11         private final String key;
12         
13         
14         public LocalizedIOException(String key) {
15                 super(key);
16                 this.key = key;
17         }
18         
19         public LocalizedIOException(String key, Throwable cause) {
20                 super(key, cause);
21                 this.key = key;
22         }
23         
24         @Override
25         public String getLocalizedMessage() {
26                 return trans.get(key);
27         }
28 }