Exception URL

Sean Coleman's Avatar

Sean Coleman

10 Nov, 2010 08:21 PM

How do you see what the request URL was when the exception happened?

  1. 1 Posted by Ciaran Lee on 12 Nov, 2010 03:06 PM

    Ciaran Lee's Avatar

    Hi Sean,
    Normally the URL is displayed right under the exception title. Is your app running rails? Have you done anything unusual with it, like bypassing parts of the rails stack?
    Regards,
    Ciaran Lee

  2. 2 Posted by Sean Coleman on 12 Nov, 2010 07:19 PM

    Sean Coleman's Avatar

    It is a rails app. I'm not doing anything too particular other than catching
    the exceptions in the controller in order to display custom error pages, but
    then I'm reraising them for Exceptional. I'm using the code that was given
    to me to do this. Could this be the problem?

    Sean Coleman

    CEO
    OrangeSlyce
    On Nov 12, 2010 8:08 AM, "Ciaran Lee" <
    [email blocked]<tender%[email blocked]>>
    wrote:

  3. 3 Posted by Ciaran Lee on 15 Nov, 2010 01:51 PM

    Ciaran Lee's Avatar

    Hi Sean,

    Yes, your customized exception handling is causing this problem. No extra information is being sent other that the exception title and the backtrace.

    It is unconventional to handle exceptions in this manner, but if you need to do things this way then you can use the following from inside your controller:

    Exceptional::Catcher.handle_with_controller(e, self, request)

    I hope this helps!
    Ciaran Lee

  4. Ciaran Lee closed this discussion on 15 Nov, 2010 01:51 PM.

  5. Sean Coleman re-opened this discussion on 15 Nov, 2010 06:35 PM

  6. 4 Posted by Sean Coleman on 15 Nov, 2010 06:35 PM

    Sean Coleman's Avatar

    Thanks, what is the conventional way? If I don't handle the exceptions, then
    I can't display custom error pages. How can I do both in the best way?

    Sean Coleman

  7. 5 Posted by Sean Coleman on 15 Nov, 2010 07:21 PM

    Sean Coleman's Avatar

    That does work now, thanks.
            
            -- Sean ColemanFounder & CEOOrangeSlyce(480) [email blocked]


            On Monday, November 15, 2010 at 11:35 AM, Sean Coleman wrote:

  8. 6 Posted by Ciaran Lee on 16 Nov, 2010 11:39 AM

    Ciaran Lee's Avatar

    Hi Sean,

    I'm glad that's working for you!

    I guess the conventional way would be not displaying error pages that are anything other than html. There are scenarios under which your custom action would probably also fail.

    Kind regards,
    Ciaran Lee

  9. Ciaran Lee closed this discussion on 16 Nov, 2010 11:39 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac