Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Jul 06 22:50:52 EDT 2025

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

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

Back to the top