Skip to Content
avatar image
Former Member

FPM Error Page: Processing

Hi All,

While using FPM error page, code is being  accessed even after the error page is triggered.

Pls let me know how to stop this code processing.

Thanks in advance.

Rgs,

Ashutosh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jan 16, 2015 at 04:23 AM

    Hi,

    After your code which generates error page just write RETURN statement.

    Thanks

    KH

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 16, 2015 at 04:56 AM

    Hi,

    is the code after the ERROR PAGE call is executing? if so, as suggested, put RETURN statement just after the error page call to skip further processing of your logic.

    Regards,

    Rama

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 16, 2015 at 06:31 AM

    The issue is:

    - I have triggerred FPM Error Page in method INIT of my feeder class.

    - After the error page is triggered I use "Return" and rest of INIT is skipped.

    - But the GET_DATA method of my feeder class is still getting executed.  <<This should not execute

    If I use RAISE_EXEPTION instead of FPM Error page I get the expected result -- Processing stop at that line only.

    I am not sure why FPM error page is not doing this.

    Add comment
    10|10000 characters needed characters exceeded

    • I think the frame work will execute the methods despite error messages. So we need to explicitly bypass the code where ever required. To do so, we need to set a global variable and access where ever required accordingly.

  • Jan 19, 2015 at 06:54 AM

    Hi Ashutosh Kumar,

    I think you have to write the logic in the method PROCESS_EVENT of the Feeder Class.

    Even then the method GET_DATA will get executed.

    So declare an error flag globally and set it in PROCESS_EVENT and handle this golbal variable in GET_DATA method accordingly.

    Regards,

    Yugesh A

    Add comment
    10|10000 characters needed characters exceeded