Consultor Eletrônico



Kbase P97346: What is ADM-ERROR and how should be used?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/9/2004
Status: Unverified

GOAL:

What is ADM-ERROR and where should be used?

FACT(s) (Environment):

Progress 8.x
Progress 9.x
OpenEdge 10.x

FIX:

ADM-ERROR is a character string return value recognized by ADM code to indicate that an error has occured. This allows for the undoing of a transaction when an error occurs during updates.

This is shown with adm-assign-record where it checks for errors and will undo the transaction and return "ADM-ERROR" if an error occurs. By returning "ADM-ERROR" this procedure has communicated to the procedure that dispatched it, that an error has occured and that procedure will also need to return "ADM-ERROR".

Return "ADM-ERROR" to ensure that an error has occured continues.