Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Global error handling
Global error handling [message #1061304] Fri, 31 May 2013 06:05 Go to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

I want to set a custom error handler, which is called each time an unexpected error occurs. How can I achieve that?
My understanding was to replace the Provider<StatusHandler>, is that the right approach? And if so, where should I set it?

Best regards and thanks for any kind of help
Bastian
Re: Global error handling [message #1061385 is a reply to message #1061304] Fri, 31 May 2013 12:14 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi again,

I think I was a little imprecise and I got a little deeper into this topic by now, but still don't achieve what I desire.

I've got my RCP. Sometimes an error occurs that wasn't predictable. The the standard JFace dialog shows up with the error message. This error dialog I want to be replaced by my own dialog. A little research led me to the JFace Policy. There one can set a StatusHandler. So I replaced it, but its show-method never gets called.
I also added an ErrorSupportProvider to the Policy. That only adds a Control to the default ErrorDialog.
Is anyone experienced in this?

Best regards
Bastian
Re: Global error handling [message #1061945 is a reply to message #1061385] Wed, 05 June 2013 05:44 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

I'm wondering what is wrong with my question. Is it too trivial or too difficult? Or is it maybe the wrong forum?
But I'd really like to know how to solve this Smile

Bastian
Re: Global error handling [message #1063102 is a reply to message #1061945] Wed, 12 June 2013 10:21 Go to previous messageGo to next message
Eclipse UserFriend
Are you on pure e4 or mixed with 3.x?
Re: Global error handling [message #1063103 is a reply to message #1063102] Wed, 12 June 2013 10:34 Go to previous messageGo to next message
Eclipse UserFriend
http://www.eclipse.org/forums/index.php/mv/msg/377967/915756/#msg_915756
Re: Global error handling [message #1063124 is a reply to message #1063103] Wed, 12 June 2013 12:08 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Great!

Thank you, it works fine!

Best regards
Bastian
Re: Global error handling [message #1712381 is a reply to message #1061304] Fri, 23 October 2015 12:30 Go to previous message
ihave question is currently offline ihave questionFriend
Messages: 32
Registered: November 2014
Member
Hallo Bastian,

How did you implement your solution? Can you please write a list of things you had to do?

Has someone else have a solution for the original problem "I want to set a custom error handler, which is called each time an unexpected error occurs. How can I achieve that?"

Thanks in advance!
Previous Topic:Using event.filter to register to event topics
Next Topic:Can we run SWTBot Test with Eclipse Luna having compatibility with eclipse 3.x code
Goto Forum:
  


Current Time: Thu Apr 25 23:34:19 GMT 2024

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

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

Back to the top