AppError and PAS

Posted by kevin hermans on 23-Oct-2017 03:16

Dear,

A question about AppError. My apologies if this is a double call remember me something about it.
I am making a REST call to my backend where I trow an AppError.

A easy and straight forward example of an AppError in a service interface.

    oAE = new AppError("RETVAL error").
    oAE:AddMessage('first error', 1). //
    oAE:AddMessage('second error', 2).
    return error oAE.

But if a test this call I don't get the reponse I was expecting. If I extract this in ABL all the data is there.

Is this expected behaviour? That only the first error message is passed to the frontend.

Kind regards
Kevin Hermans

Posted by Peter Judge on 23-Oct-2017 08:20

Yes, for the /rest transport (issue PSC00332002) . The /rest transport only returns thje first error .
 
For the /WEB transport, when using the DataObject Handler, all the errors are returned, including any “InnerError”s
 

All Replies

Posted by Peter Judge on 23-Oct-2017 08:20

Yes, for the /rest transport (issue PSC00332002) . The /rest transport only returns thje first error .
 
For the /WEB transport, when using the DataObject Handler, all the errors are returned, including any “InnerError”s

This thread is closed