[Xswt-developer] Tree-based XSWT and XSWTExceptions
Brought to you by:
dvorme
|
From: <ha...@id...> - 2006-07-07 09:47:16
|
Hi,=20 There's one snag with the new tree-based design of XSWT: It's more = difficult to give precise error messages, since information about line and column = is lost. When implementing the new design, I replaced the line and column = in many calls to new XSWTException with -1 and -1. I haven't had time to go through them, but I guess the best solution is to redefine XSWTException = to hold an element instead of line, column and then pass the element to the constructor instead. Hopefully the element's toString() method is informative, which at least the default element implementation's is. In = some cases the line and column is passed into methods that use them for = throwing nice XSWTExceptions, and in these cases, the element should be passed instead. Have a nice summer! Hallvard --- Hallvard Tr=E6tteberg (ha...@id..., http://www.idi.ntnu.no/~hal) Associate Professor, IS group, Dept. of Computer and Information = Sciences at the Norwegian Univ. of Science and Technology |