zoukankan      html  css  js  c++  java
  • msdn 英文之try, catch, and throw Statements

     

     
     


     

    y-block :
    try compound-statement handler-list

    handler-list :
    handler handler-listopt

    handler :
    catch ( exception-declaration ) compound-statement

    exception-declaration :
    type-specifier-list declarator
    type-specifier-list abstract-declarator
    type-specifier-list
    ...

    throw-expression :
    throw assignment-expressionopt

    ·           The compound-statement after the try clause is the guarded section of code. The throw-expression “throws” (raises) an exception. The compound-statement after the catch clausen. 条款;子句 is the exception handler, and “catches” (handles) the exception thrown by the throw-expression. The exception-declaration statement indicates the type of exception the clause handles. The type can be any valid data type, including a C++ class. If the exception-declaration statement is an ellipsis (省略...), the catch clause handles any type of exception, including a C exception. Such a handler must be the last handler for its try-block.



    compound ['kɔmpaund, kəm'paund]

    • vt. 混合;合成;和解妥协;搀合
    • vi. 妥协;和解
    • n. 化合物;复合词;混合物
    • adj. 复合的;混合的
  • 相关阅读:
    773. 有效的字母异位词
    768. 杨辉三角
    759. 时间角度
    757. 最短无序数组
    749. 约翰的后花园
    737. 查找矩阵
    AIX如何点亮HBA卡
    Spring Boot 静态文件,请求不到,util文件夹
    Spring Boot 静态文件,请求不到,util文件夹
    Bootstrap表格组件 Bootstrap Table
  • 原文地址:https://www.cnblogs.com/pipicfan/p/2316183.html
Copyright © 2011-2022 走看看