⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bgerror.n

📁 linux系统下的音频通信
💻 N
字号:
'\"'\" Copyright (c) 1990-1994 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) bgerror.n 1.5 97/08/04 17:49:35'\" .so man.macros.TH bgerror n 7.5 Tcl "Tcl Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEbgerror \- Command invoked to process background errors.SH SYNOPSIS\fBbgerror \fImessage\fR.BE.SH DESCRIPTION.PPThe \fBbgerror\fR command doesn't exist as built-in part of Tcl.  Instead,individual applications or users can define a \fBbgerror\fRcommand (e.g. as a Tcl procedure) if they wish to handle backgrounderrors..PPA background error is one that occurs in an event handler or someother command that didn't originate with the application.For example, if an error occurs while executing a command specifiedwith the \fBafter\fR command, then it is a background error.For a non-background error, the error can simply be returned upthrough nested Tcl command evaluations until it reaches the top-levelcode in the application; then the application can report the errorin whatever way it wishes.When a background error occurs, the unwinding ends inthe Tcl library and there is no obvious way for Tcl to reportthe error..PPWhen Tcl detects a background error, it saves information about theerror and invokes the \fBbgerror\fR command later as an idle event handler.Before invoking \fBbgerror\fR, Tcl restores the \fBerrorInfo\fRand \fBerrorCode\fR variables to their values at the time theerror occurred, then it invokes \fBbgerror\fR withthe error message as its only argument.Tcl assumes that the application has implemented the \fBbgerror\fRcommand, and that the command will report the error in a way thatmakes sense for the application.  Tcl will ignore any result returnedby the \fBbgerror\fR command as long as no error is generated..PPIf another Tcl error occurs within the \fBbgerror\fR command(for example, because no \fBbgerror\fR command has been defined)then Tcl reports the error itself by writing a message to stderr..PPIf several background errors accumulate before \fBbgerror\fRis invoked to process them, \fBbgerror\fR will be invoked oncefor each error, in the order they occurred.However, if \fBbgerror\fR returns with a break exception, thenany remaining errors are skipped without calling \fBbgerror\fR..PPTcl has no default implementation for \fBbgerror\fR.However, in applications using Tk there is a default\fBbgerror\fR procedurewhich posts a dialog box containingthe error message and offers the user a chance to see a stacktrace showing where the error occurred..SH KEYWORDSbackground error, reporting

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -