Add ibanCode to exceptionMessage

Discussão em 'StackOverflow' iniciado por fdantas, Agosto 5, 2019.

  1. fdantas

    fdantas Administrator Moderador

    I want to add iban code to my OpaCallException, so that I would know specifically which iban code is incorrect. My code:

    FIND FIRST tt_iban_crc_aaa WHERE tt_iban_crc_aaa.iban=tt_fee_request.debtorAccount AND tt_iban_crc_aaa.crc=g-crc NO-LOCK NO-ERROR.
    IF NOT AVAILABLE tt_iban_crc_aaa THEN DO:
    FIND FIRST aaa WHERE aaa.name=tt_fee_request.debtorAccount AND aaa.crc=g-crc NO-LOCK NO-ERROR.
    IF AVAILABLE aaa THEN DO:
    CREATE tt_iban_crc_aaa.
    ASSIGN
    tt_iban_crc_aaa.aaa = aaa.aaa
    tt_iban_crc_aaa.crc = aaa.crc
    tt_iban_crc_aaa.iban = aaa.name
    .
    END.
    ELSE DO:
    UNDO, THROW NEW OpaCallException("iban.invalid", "Iban incorrect", "Provided iban is invalid").
    END.
    END.


    I am having difficult time with progress syntax. I could use some help or tips, thanks!

    Continue reading...

Compartilhe esta Página