Skip to main content


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 DomeFriend
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 DomeFriend
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 Mar 19 03:24:50 GMT 2024

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

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

Back to the top