|
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 |
|
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 |
Remo Loetscher 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
|
|
|
Powered by
FUDForum. Page generated in 0.03282 seconds