1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How to rethrow caught exception in progress 4gl?

Discussão em 'StackOverflow' iniciado por fdantas, Dezembro 3, 2019.

  1. fdantas

    fdantas Administrator Moderador

    I can't find any information on how to rethrow the same exception that I just caught.

    My catch expression looks like this:

    CATCH ex1 AS Progress.Lang.Error :
    MESSAGE ex1:NumMessages.
    DEFINE VARIABLE iteration AS INTEGER NO-UNDO.
    DO iteration = 1 TO 6:
    clsLog:inf(ex1:GetMessage(iteration)).
    END.

    clsLog:inf(SUBSTITUTE("ex1:CallStack: &1", ex1:CallStack)).
    END CATCH.


    How do I rethrow this specific exception without loosing any of the messages or data it carries? Or if you can find anything on the Internet about rethrowing exceptions in progress I would be thankful.

    Continue reading...

Compartilhe esta Página