JAL-1355
[jalview.git] / src / com / stevesoft / pat / Pattern.java
index 543391e..3a3462c 100755 (executable)
@@ -7,6 +7,8 @@
 //
 package com.stevesoft.pat;
 
+import jalview.util.MessageManager;
+
 import java.util.*;
 
 /**
@@ -259,7 +261,7 @@ public abstract class Pattern
    */
   Pattern clone1(Hashtable h)
   {
-    throw new Error("No such method as clone1 for " + getClass().getName());
+    throw new Error(MessageManager.formatMessage("error.no_such_method_as_clone1_for", new String[]{getClass().getName()}));
   }
 
   Pattern clone(Hashtable h)
@@ -272,7 +274,7 @@ public abstract class Pattern
     p = clone1(h);
     if (p == null)
     {
-      throw new Error("Null from clone1!");
+      throw new Error(MessageManager.getString("error.null_from_clone1"));
     }
     h.put(this, p);
     h.put(p, p);