JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / jalview / analysis / WUSSParseException.js
1 Clazz.declarePackage ("jalview.analysis");\r
2 Clazz.load (["java.lang.Exception"], "jalview.analysis.WUSSParseException", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.problemPos = 0;\r
5 Clazz.instantialize (this, arguments);\r
6 }, jalview.analysis, "WUSSParseException", Exception);\r
7 Clazz.makeConstructor (c$, \r
8 function (problemPos) {\r
9 this.construct ("Invalid WUSS Notation", problemPos);\r
10 }, "~N");\r
11 Clazz.makeConstructor (c$, \r
12 function (message, problemPos) {\r
13 Clazz.superConstructor (this, jalview.analysis.WUSSParseException, [message + " at or near position " + problemPos]);\r
14 this.problemPos = problemPos;\r
15 }, "~S,~N");\r
16 Clazz.defineMethod (c$, "getProblemPos", \r
17 function () {\r
18 return this.problemPos;\r
19 });\r
20 });\r