#include "TclXPCOMPrivate.h"
Go to the source code of this file.
Functions | |
void | TclXPCOM_SetErrorCode (Tcl_Interp *interp, nsresult res) |
int | TclXPCOM_GetErrorCode (Tcl_Interp *interp, nsresult *res) |
void | TclXPCOM_SetErrorMessage (Tcl_Interp *interp, nsresult res) |
void | TclXPCOM_SetError (Tcl_Interp *interp, nsresult res) |
void | TclXPCOM_BackgroundError (Tcl_Interp *interp) |
Contains functions for handling XPCOM result codes in Tcl.
Definition in file TclXPCOMError.cpp.
|
Sets an interpreter's 'errorCode' variable to contain an XPCOM result code. The format consists of a list whose first element is the string 'XPCOM' and whose second element is the result code.
Definition at line 50 of file TclXPCOMError.cpp. |
|
Attempts to retrieve an XPCOM result code from an interpreter's 'errorCode' variable.
Definition at line 74 of file TclXPCOMError.cpp. |
|
Sets an interpreter's result to an error message corresponding to the given XPCOM result code.
Definition at line 111 of file TclXPCOMError.cpp. References TCLXPCOM_ERRORMSGPROC. |
|
Convenience function that sets an interpreter's 'errorCode' variable and result for a given XPCOM result code.
Definition at line 151 of file TclXPCOMError.cpp. References TclXPCOM_SetErrorCode, and TclXPCOM_SetErrorMessage. |
|
Handles background errors caused by Tcl Component bindings. If the 'xpcom::bgerror' procedure is defined in the given interpreter, it will be called with the error message in the interpreter's result. If there is no 'xpcom::bgerror' procedure defined, or an error occurs while executing the procedure, normal background error processing will occur.
Definition at line 175 of file TclXPCOMError.cpp. References TCLXPCOM_BGERRORPROC. |