[CLOSED] Global Exception Handling How to?

  1. #1

    [CLOSED] Global Exception Handling How to?

    Hi,

    I would like to know how to redirect unhandled errors from ext.net to a custom error page.

    Our current ASP.NET error handling Implementation:

    Currenlty we are using custom error handling in ASP.Net using "Page_Error" event. We have a BasePage class that is derived from "Page" class and then we are handling "Page_Error" event in this class.Any errors from any page will be redirected to our custom error page.

    1. How to handle exceptions that raise from Ext.net and then redirect them to custom error page?

    For Example: We have a code like this:

     <ext:Store runat="server" ID="TemplatesStore" AutoLoad="false" OnRefreshData="GetTemplates" ShowWarningOnFailure="true" >
          <Reader>
             <ext:JsonReader IDProperty="Id">
                <Fields>
                   <ext:RecordField Name="Id" />
                   <ext:RecordField Name="Template" />
                </Fields>
             </ext:JsonReader>
          </Reader>
          <Listeners>
             <Load Handler="#{cboTemplate}.setValue(#{cboTemplate}.store.getAt(0).get('Template'));"  />
          </Listeners>
       </ext:Store>
    This store is attached to a combobox. When a value is selected from another combobox this store will get executed and
    will fetch the data from a webservice.Since I am handling the "Load" handler. I am getting java script error's like.

    "Microsoft JScript runtime error: 'cboTemplate.store.getAt(...)' is null or not an object". Show how to handle such type of errors.

    So, how to handle this type of errors.

    2. How to disable Ext.net exception diablogs like "Communication Failure" etc. Instead we want to redirect to a custom error page. how do we do that?

    3. Are their any samples that show to handle errors in ext.net?

    Note: We are using the Ext.net RC 1.0 (1.0.4093.32349).

    Regards,
    Manoj
    Last edited by Daniil; May 17, 2011 at 1:57 PM. Reason: [CLOSED]
  2. #2
    Hi,
    1. How to handle exceptions that raise from Ext.net and then redirect them to custom error page?

    2. How to disable Ext.net exception diablogs like "Communication Failure" etc. Instead we want to redirect to a custom error page. how do we do that?
    To handle Ext.Net Ajax request server side exceptions please use AjaxRequestException listener of ResourceManager.

    To redirect you could set window.location.

    "Microsoft JScript runtime error: 'cboTemplate.store.getAt(...)' is null or not an object". Show how to handle such type of errors.
    Please investigate
    http://mattsnider.com/javascript/cat...-all-browsers/

    I'm sure there is a lot of info on this topic on the internet.

    3. Are their any samples that show to handle errors in ext.net?
    Unfortunately, we have no such example.

Similar Threads

  1. [CLOSED] Javascript Global Error Handling
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 20, 2012, 8:30 PM
  2. Global Error Handling
    By wdk in forum 1.x Help
    Replies: 2
    Last Post: Apr 03, 2012, 2:34 AM
  3. [CLOSED] [1.0] Global error handling of DirectMethods
    By jchau in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jul 27, 2010, 7:59 PM
  4. [CLOSED] Global exception handling - wrong response or no failure
    By pschojer in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 13, 2010, 2:03 PM
  5. Replies: 4
    Last Post: Sep 17, 2009, 7:45 AM

Posting Permissions