Error messages from BaseX.main()

Tuesday, 18 June 2013 · 3 messages · last reply 19 Jun 2013
BD
Brock, David18 Jun 2013 18:35 #
I want to call BaseX.main() from a Java GUI and need to display errors to the user. There are no exceptions thrown by this method, and I do not see a way to redirect so that I can capture and display. Thanks, David
CG
Christian Grün19 Jun 2013 11:01 #
Hi David,
Quoted text · Brock, David · 3 lines
> I want to call BaseX.main() from a Java GUI and need to display errors to > the user. There are no exceptions thrown by this method, and I do not see a > way to redirect so that I can capture and display.
In BaseX, all main() functions serve as main entry points. It’s probably better to instantiate a new BaseX class instead. Hope this helps, Christian
BD
Brock, David19 Jun 2013 21:00 #
Instantiating the BaseX class worked perfectly, thanks! David Sent from my iPhone
Quoted text · Christian Grün · 12 lines
On Jun 19, 2013, at 4:01 AM, "Christian Grün" <christian.gruen at gmail.com> wrote: > Hi David, > >> I want to call BaseX.main() from a Java GUI and need to display errors to >> the user. There are no exceptions thrown by this method, and I do not see a >> way to redirect so that I can capture and display. > > In BaseX, all main() functions serve as main entry points. It’s > probably better to instantiate a new BaseX class instead. > > Hope this helps, > Christian

⚡Generated with XQuery