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 15: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 16: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: Tue Sep 16 07:32:09 GMT 2014

Powered by FUDForum. Page generated in 0.01513 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software