00001 package i2bpro.Exceptions;
00002
00003 import i2bpro.layer.Layer;
00004 import java.util.regex.Matcher;
00005 import java.util.regex.Pattern;
00006 import javax.swing.JOptionPane;
00007
00025 public final class ErrorMsg
00026 {
00035 public static void show(String err)
00036 {
00037 JOptionPane.showMessageDialog(null, err, "Fehler",
00038 JOptionPane.ERROR_MESSAGE);
00039 Layer.getInstance().Reset();
00040 }
00041
00042
00043
00055 private static String DecodeErrorMsg(String err)
00056 {
00057
00058
00059
00060
00061
00062 Pattern pattern = Pattern.compile(":");
00063 Matcher matcher = pattern.matcher(err);
00064 int begin = 0;
00065 while (matcher.find()) {begin = matcher.end();}
00066 return err.substring(begin, err.length());
00067 }
00068 }