* pair, end is close base pair
*/
public static SequenceFeature[] GetBasePairs(String line)
+ public static SequenceFeature[] GetBasePairs(CharSequence line) throws WUSSParseException
{
Vector stack = new Vector();
--- /dev/null
+package jalview.analysis;
+
+public class WUSSParseException extends Exception {
+ private long problemPos;
+ public WUSSParseException(long problemPos)
+ {
+ this("Invalid WUSS Notation", problemPos);
+ }
+ public WUSSParseException(String message, long problemPos)
+ {
+ super(message+" at or near position "+problemPos);
+ this.problemPos=problemPos;
+ }
+ public long getProblemPos()
+ {
+ return problemPos;
+ }
+
+}
\ No newline at end of file