DtclErsRep - Report Tcl errors using Ers functions.

Function

Report Tcl errors using Ers functions.

Descriptions

This procedure can be used to report Tcl script errors using the DRAMA ErsRep function. It is generally used to handle errors returned from Tcl_Eval and associated functions executed by DRAMA actions.

This routine takes the Tcl interperter and reports the last error which occured in that interperter using a sequence of ErsRep calls such that one ErsRep calls occurs for each line in the error report. An optional flag (stack) indicates if the contents of the errorInfo and errorCode variables should be reported .

It is left up to the user to flush the errors.

Include File

dtcl.h

Call

DtclErsRep(interp,stack,status)

Parameters

(">" input, "!" modified, "W" workspace, "<" output)

>interpTcl_InterpThe Tcl interperter to report for.
>stackintIf true, report the stack dump (errorInfo variable) and errorCode as well as the actual error.
!statusStatusType *Modified Status. Passed directly ErsRep which means you should set it before entry for use in the calls to ErsRep. Will only be changed if ErsRep changes it.

Author

Tony Farrell, AAO

See Also

DTCL manual, Ers manual, Dits specification.

Click here for the DRAMA home page and here for the AAO home page.

 For more information, contact tjf@aao.gov.au