Friday, 15 February 2013

xpages - SSJS equivalent of LSI_Info from LotusScript -



xpages - SSJS equivalent of LSI_Info from LotusScript -

most of code error handled try/catch , openlog (modified handle ssjs exceptions). unfortunately, exception in ssjs gives hard read stack trace.

so need pass more info - @ to the lowest degree event/method error handler. can set "method xy" argument every openlog.logerror call, makes every handler unique , prone errors (programmers love copypasta). nice have lsi_info equivalent, makes error handlers constant (so can define them template in eclipse).

is there call, returns "where am" info of method/event ssjs code (including libraries)?

have @ code in message class of debug toolbar (found here on github). contains way 'pretty print' errors , captures com.ibm.jscript.interpretexception. utilize send formatted error message openlog event document. (sort of) mimics info in default xpage error page.

to see formatted error looks go toolbar's demo page , nail test 1 or test 2 button. throw ssjs error captured custom error form. form writes message toolbar configured store error messages in separate openlog database.

(toolbar download can found here on openntf)

xpages xpages-ssjs

No comments:

Post a Comment