📄 exception.3
字号:
.\" 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -