exception.3
来自「Object-Oriented Programming With ANSI-C这」· 3 代码 · 共 52 行
3
52 行
.\" Exception.3 -- 1.3 Sep 26 18:06:39 1993.\" Copyright (c) 1993 Axel T. Schreiner.TH Exception 3 "local: ats".SH NAME\f3Class Exception: Object\fP \(em manage a stack of exception handlers.SH SYNOPSIS.nfObject \f3Exception\fP.sp .5.B new(Exception());.sp .5.BI "int catch (" self ).BI "void cause (int " number ).fi.SH DESCRIPTION.B Exceptionis a class for managing a stack of exception handlers.After it is armed with.BR catch ,the newest.B Exceptionobject can receive a nonzero exception number sent with.BR cause() ..PP.B ctorpushes the new.B Exceptionobject onto the global exception stack,.B dtorremoves it.These calls must be balanced..PP.B catcharms its object for receiving an exception number.Once the number is sent,.B catchwill return it.This function is implemented as a macro with.BR setjmp (3)and is subject to the same restrictions;in particular,the function containing the call to.B catchmust still be active when the exception number is sent..PPOther methods should generally not be applied to an.B Exceptionobject..SH SEE ALSOsetjmp(3)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?