Class RunTime4GLException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.progress.common.exception.ProException
com.progress.open4gl.Open4GLException
com.progress.open4gl.RunTime4GLException
All Implemented Interfaces:
com.progress.common.exception.IChainableException, Serializable
Direct Known Subclasses:
RunTime4GLErrorException, RunTime4GLQuitException, RunTime4GLStopException

public class RunTime4GLException extends Open4GLException
The RunTime4GLException family of exceptions correspond to ABL ERROR, STOP, and QUIT conditions.
See Also:
  • Constructor Details

    • RunTime4GLException

      public RunTime4GLException(long id, Object[] args, int err)
      This constructor is intended for internal use only.
  • Method Details

    • createException

      public static RunTime4GLException createException(int condition, int errorNum, String errorString, String retStr, boolean noRet)
      This method is intended for internal use only.
    • getErrorNum

      public int getErrorNum()
      This returns the ABL error number. If there is more than one error message, this is the number associated with the first error.
      Returns:
      The error number of the first error
    • setProcReturnString

      public void setProcReturnString(String returnStr)
      This method is intended for internal use only.
      Overrides:
      setProcReturnString in class Open4GLException
    • hasProcReturnString

      public boolean hasProcReturnString()
      This method returns true if ABL was called and executed RETURN ERROR [<string>], RETURN ERROR <AppError>, or UNDO, THROW <AppError> with an UNDO, THROW directive in the top-level ABL procedure. If an error occurs before any ABL code ever executes this will return false.
      Overrides:
      hasProcReturnString in class Open4GLException
      Returns:
      true if there is a RETURN-VALUE (or ReturnValue), otherwise false.
    • getProcReturnString

      public String getProcReturnString()
      Get the RETURN-VALUE (or ReturnValue) that was set by the last procedure call.
      Overrides:
      getProcReturnString in class Open4GLException
      Returns:
      The RETURN-VALUE (or ReturnValue) value. If hasProcReturnString returns false, this method returns null. If RETURN ERROR was executed with no <string> or if an AppError is thrown and the ReturnValue property was not set, this returns the empty string. If the Unknown value (?) was explicitly set (for example, RETURN ERROR ?), this method returns null.