Custum Error Pages

View: New views
3 Messages — Rating Filter:   Alert me  

Custum Error Pages

by Huibert Gill-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

ist there an easy way to overwrite/customize the default "Errors occurred while processing the request.!" Page in rife?
The page shows a stacktrace and some RIfe info whenever an Exception is thrown, but not caught in the calling Element.

I would like to create an custom Element for showing/handling unhandeled exceptions.

Thanks in advance, it's real fun hacking around with a framework like rife.

greeting from germany

Huibert Gill

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Custum Error Pages

by Huibert Gill-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi again,

after searching the nabble archives, I found the isue RIFE-89,
and this post: http://www.nabble.com/Custom-error-handling-tf1716264s9330.html#a4660557

So I tried it,
all the elements in my project extend one basic element, which now
contains:

        @Override
        public final void processElement() throws EngineException {
                super.processElement();
                try {
                        processM24Element();
                } catch (LightweightEngineException lwee) {
                        throw lwee;
                } catch (Exception e) {
                        handleException(e);
                }
        }

the processM24Element method is now used in all other Elements,
after inserting the LightWeightEnigineException catchblock,
and adding some support for detecting Embedded Elements in
"handleException(e)"
things work now, BUT

Processing Submisions/Form/Beans allways call a "doSomething" Method.
I think there is no similar way to handle customized Exceptionhandling
here, correct?

I now put try/catch blocks in the doSomthing methods,
but it is not as elegant as Edwin Mol proposed.

Any ideas to do this better?

Thanks in advance

Huibert Gill


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Custum Error Pages

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Gill,

this is one of the last 'missing features'. I started working on it  
and hope to be done in a couple of weeks. More information can be  
found here:

http://uwyn.com/issues/browse/RIFE-89

If you have any comments on how you would like this to behave, please  
contribute them to the Jira issue.

Best regards,

Geert

On 29 Oct 2007, at 16:02, huibert.gill@... wrote:

>
> Hi again,
>
> after searching the nabble archives, I found the isue RIFE-89,
> and this post: http://www.nabble.com/Custom-error-handling- 
> tf1716264s9330.html#a4660557
>
> So I tried it,
> all the elements in my project extend one basic element, which now
> contains:
>
> @Override
> public final void processElement() throws EngineException {
> super.processElement();
> try {
> processM24Element();
> } catch (LightweightEngineException lwee) {
> throw lwee;
> } catch (Exception e) {
> handleException(e);
> }
> }
>
> the processM24Element method is now used in all other Elements,
> after inserting the LightWeightEnigineException catchblock,
> and adding some support for detecting Embedded Elements in
> "handleException(e)"
> things work now, BUT
>
> Processing Submisions/Form/Beans allways call a "doSomething" Method.
> I think there is no similar way to handle customized Exceptionhandling
> here, correct?
>
> I now put try/catch blocks in the doSomthing methods,
> but it is not as elegant as Edwin Mol proposed.
>
> Any ideas to do this better?
>
> Thanks in advance
>
> Huibert Gill
>
>
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web