X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemabinding%2Fversion2%2FFeature.java;fp=src%2Fjalview%2Fschemabinding%2Fversion2%2FFeature.java;h=bbc5f67936d835be888c8a9707d7909d2a92eff5;hb=aced09c4feeaf3406269442c14e54abeeb4cad81;hp=3bc1a9e630b07b6e99ffd2e1f6130181b338f264;hpb=5d32c7ad007e098894b332b6fca61e1824972c50;p=jalview.git diff --git a/src/jalview/schemabinding/version2/Feature.java b/src/jalview/schemabinding/version2/Feature.java index 3bc1a9e..bbc5f67 100644 --- a/src/jalview/schemabinding/version2/Feature.java +++ b/src/jalview/schemabinding/version2/Feature.java @@ -24,6 +24,8 @@ package jalview.schemabinding.version2; //- Imported classes and packages -/ //---------------------------------/ +import jalview.util.MessageManager; + import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; @@ -224,9 +226,11 @@ public class Feature implements java.io.Serializable // check bounds for index if (index < 0 || index >= this._otherDataList.size()) { - throw new IndexOutOfBoundsException("getOtherData: Index value '" - + index + "' not in range [0.." - + (this._otherDataList.size() - 1) + "]"); + throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{ + "getOtherData", + Integer.valueOf(index).toString(), + Integer.valueOf((this._otherDataList.size() - 1)).toString() + })); } return (jalview.schemabinding.version2.OtherData) _otherDataList @@ -467,9 +471,11 @@ public class Feature implements java.io.Serializable // check bounds for index if (index < 0 || index >= this._otherDataList.size()) { - throw new IndexOutOfBoundsException("setOtherData: Index value '" - + index + "' not in range [0.." - + (this._otherDataList.size() - 1) + "]"); + throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{ + "setOtherData", + Integer.valueOf(index).toString(), + Integer.valueOf((this._otherDataList.size() - 1)).toString() + })); } this._otherDataList.set(index, vOtherData);