ReCastEASIError()

Description

ReCastEASIError() is used to re-cast (resend) the previous error.

Call Signature

void ReCastEASIError ( )

Return Value

void

This has no return value.

Remarks

This is typically used in conjunction with an error-handler. In the situation where an error was trapped and examined, but no appropriate way to handle it could be determined, it is re-cast as if it was never trapped.

Example

Compute frequency by inverting period. If period is zero, then trap the division-by-zero error and set frequency to a default value. If some other error is encountered, such as period was a string variable, then re-cast the error.


  try
     frequency = 1 / period
  onerror
     ! extract the error
     error = F$ERRNUM()

     ! if the error was divide-by-zero, then set frequency to a large value
     if ( error = 608 ) THEN
        frequency = 1.0e+10
     ! otherwise, something unexpected happened, re-cast the error
     else
        call ReCastEASIError()
     endif
  endonerror

See also

EASIError()

F$ERRNUM()

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.