Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Possible to modify the default way an error is displayed?
Possible to modify the default way an error is displayed? [message #482561] Thu, 27 August 2009 04:54 Go to next message
Jason Kolter is currently offline Jason KolterFriend
Messages: 15
Registered: July 2009
Junior Member
Hello,

If there is an error creating a view or similar, the default response is
for the application to display message like "Could not create view: An
unexpected exception was thrown", with a details button, that when
clicked displays to the user a nasty stack trace.

Is there any way to provide my own display here, with a more simple
message like "A software error has occurred, please contact support at
help@email.com"? I know with web frameworks and such there is a way to
set a custom default error page if an exception makes it's way out of
the framework, is there anything similar here?

Thanks,

Jason
Re: Possible to modify the default way an error is displayed? [message #482645 is a reply to message #482561] Thu, 27 August 2009 12:47 Go to previous messageGo to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

Sorry for poor english.

There is no default way to handle errors in eclipse.
Every Joint surface has own error handling, Generally this joint surfaces
are extension points because extension points have responsibility against
to client error.

You can't change default reaction of general errors, but you can add
reaction for general error. see org.eclipse.ui.statusHandlers (extension
point)

or You can listen Platform log - Platform#getLog(IBundle) -, so you can
react some strange log or error.

I used this strategy to send error infomations have been suffered by user
to our bugzilla
Re: Possible to modify the default way an error is displayed? [message #482690 is a reply to message #482561] Thu, 27 August 2009 14:36 Go to previous message
Remo Loetscher is currently offline Remo LoetscherFriend
Messages: 18
Registered: July 2009
Junior Member
Hi Jason,

there's an eclipse article about ui error handling:
http://wiki.eclipse.org/Platform_UI_Error_Handling

There you'll find information how to add status handlers to your
application.

hth,

Remo

Jason Kolter wrote:
> Hello,
>
> If there is an error creating a view or similar, the default response is
> for the application to display message like "Could not create view: An
> unexpected exception was thrown", with a details button, that when
> clicked displays to the user a nasty stack trace.
>
> Is there any way to provide my own display here, with a more simple
> message like "A software error has occurred, please contact support at
> help@email.com"? I know with web frameworks and such there is a way to
> set a custom default error page if an exception makes it's way out of
> the framework, is there anything similar here?
>
> Thanks,
>
> Jason
Previous Topic:installing from feature based repository failed
Next Topic:Re: Forcing a perspective to always load at app startup
Goto Forum:
  


Current Time: Mon Jan 13 04:00:38 GMT 2025

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

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

Back to the top