[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: May OpenEdge classes set the error-status?

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
Thanks … I’m not arguing against the HTTP client being an API; was more curious as to where people see the boundaries of their systems and components. I think that treating more things as more APIs is a good approach (and then coding to that is better still). In general I follow - or try to - your rule (but without the FIND/NO-ERROR) but it is often easy to be lazy and DELETE OBEJCT myClientPrincipal NO-ERROR (for example) without checking validity (mea culpa). Do you have a rule that says “you must have a CAN-FIND before a FIND” ? FWIW the example Richard brought up was in a ‘config setter method’ (like the link below). In this case you always want a record available so the style is FIND NO-ERROR IF NOT AVAILABLE CREATE ASSIGN = ADE-Sourcecode/ConfigBuilder.cls at 964480c051b0c09a9b75bd02d8453afe5ab35b25 · consultingwerk/ADE-Sourcecode · GitHub

Continue reading...
 
Status
Not open for further replies.
Back
Top