JAL-1355
[jalview.git] / src / com / stevesoft / pat / wrap / RandomAccessFileWrap.java
index b4d38dc..f5b61ab 100755 (executable)
@@ -7,6 +7,8 @@
 //
 package com.stevesoft.pat.wrap;
 
+import jalview.util.MessageManager;
+
 import java.io.*;
 
 import com.stevesoft.pat.*;
@@ -84,13 +86,16 @@ public class RandomAccessFileWrap implements StringLike
     {
     }
 
-    throw new ArrayIndexOutOfBoundsException("Out of bounds for file:"
-            + " i=" + i + ", Final Buffer: i0=" + i0 + " iend=" + iend);
+    throw new ArrayIndexOutOfBoundsException(MessageManager.formatMessage("exception.out_of_bounds_for_file", new String[]{
+               Integer.valueOf(i).toString(),
+               Integer.valueOf(i0).toString(),
+               Integer.valueOf(iend).toString()
+    }));
   }
 
   public String toString()
   {
-    throw new Error("Not implemented");
+    throw new Error(MessageManager.getString("error.not_implemented"));
   }
 
   public int length()