Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT log and exception handling
XWT log and exception handling [message #644332] Fri, 10 December 2010 10:13 Go to next message
Dome is currently offline Dome
Messages: 2
Registered: December 2010
Junior Member
Hi.
I want to catch the exception from XWT.load.

		try {
			control = XWT.load(url);
			shell = control.getShell();
		} catch (Exception e) {
			System.out.println("Exception!");
		}


The code in the catch block is never reached.
The stack trace is always printed.
Do I have to set a logger with XWT.setLogger?

Thank you.
Re: XWT log and exception handling [message #644350 is a reply to message #644332] Fri, 10 December 2010 11:23 Go to previous message
Dome is currently offline Dome
Messages: 2
Registered: December 2010
Junior Member
The code is reached, for example, when some closing tag is missing but it's not reached when the CLR doesn't match a class.

java.lang.NullPointerException
	at org.eclipse.e4.xwt.javabean.ResourceLoader.loadShellCLR(ResourceLoader.java:1404)
Previous Topic:DI in a OSGI Service
Next Topic:e4xmi tooling and Linux
Goto Forum:
  


Current Time: Sat Aug 23 09:26:37 EDT 2014

Powered by FUDForum. Page generated in 0.01677 seconds