Catch Exceptions

  1. #1

    Catch Exceptions

    Hi,

    Does exists some example showing how to globally catch exceptions in an MVC application?

  2. #2

    RE: Catch Exceptions



    Hi,

    In relation with my previous post, If in my MVC application with strongly-typed views I try to see when my Model is null, and return then a 404 result.

    By the moment, I throw an HttpException with httpcode=404 in this case. In this way I can see a classic ASP.NET error page, but how could I see a Coolite error page (window) with a Request Failure title and Status Code/Status Text information as I see when I request for an invalid url?

Similar Threads

  1. Replies: 5
    Last Post: Dec 13, 2012, 8:27 AM
  2. [CLOSED] How to properly handle exceptions in Direct Events?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Feb 07, 2012, 5:00 PM
  3. Bugs? on DirectMethods/Exceptions/
    By ErhWen in forum 1.x Help
    Replies: 1
    Last Post: Sep 16, 2010, 12:21 AM
  4. Replies: 4
    Last Post: Sep 17, 2009, 7:45 AM
  5. GlobalConfig throwing exceptions
    By NestorLeone in forum 1.x Help
    Replies: 2
    Last Post: Sep 08, 2009, 5:11 PM

Posting Permissions