up previous next
GetErrMesg

returns the message associated with an error

Syntax
GetErrMesg(E: ERROR): STRING

Description
This function returns the string containing the error message associated with an error.

Example
/**/  ErrMsg := "";

  Try
    F := 1/0;
  UponError E Do
    ErrMsg := GetErrMesg(E);
  EndTry;  -- no error is thrown with Try .. UponError .. EndTry

/**/ ErrMsg;
Division by zero or by a zero-divisor

See Also