X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FWUSSParseException.java;h=6d159236396add155d6f87fa6edd2fbf1a47a2f0;hb=c17981672620e0b780a2338bd0c74e55cf9ddec2;hp=c8ade0c44377b8e2aa2e85536e8e75fb1f87615c;hpb=857a40730ad5db87bfc7a381924717a2162c2b81;p=jalview.git diff --git a/src/jalview/analysis/WUSSParseException.java b/src/jalview/analysis/WUSSParseException.java index c8ade0c..6d15923 100644 --- a/src/jalview/analysis/WUSSParseException.java +++ b/src/jalview/analysis/WUSSParseException.java @@ -1,19 +1,43 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.analysis; -public class WUSSParseException extends Exception { +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; + super(message + " at or near position " + problemPos); + this.problemPos = problemPos; } + public long getProblemPos() { return problemPos; } - -} \ No newline at end of file + +}