electron-egg electron-egg
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
❤️成为赞助商
  • 教程

  • ee-bin

  • ee-core

    • addon

      • 插件模块
      • window
    • bin
    • config
    • const
    • const/channel
    • controller
    • core
    • cross
    • ee
    • electron
    • electron/app
    • electron/window
    • exception
      • httpclient
      • jobs
      • jobs/ChildJob
      • jobs/ChildPoolJob
      • loader
      • log
      • message
      • message/childMessage
      • ps
      • services
      • socket
      • storage
      • storage/jsondb
      • storage/sqlite
      • tools
      • this-app

      • utils
      • utils/helper
      • utils/is
      • utils/json
      • utils/time
      • utils/ip
      • utils/get-port
      • oldUtils
    • ee-go

    目录

    exception

    ee-core:v2.0.3

    # 介绍

    捕获异常模块。主进程和childJob功能已经启用。如果你有自己实现的子进程功能,才需要使用。

    # 使用方法

    const Exception = require('ee-core/exception');
    

    # API列表

    # start()

    开启异常捕获。会同时调用 uncaughtExceptionHandler() / unhandledRejectionHandler()

    Exception.start();
    

    # uncaughtExceptionHandler()

    当进程上抛出异常而没有被捕获时触发该事件,并且使异常静默

    # unhandledRejectionHandler()

    当promise中reject的异常在同步任务中没有使用catch捕获就会触发该事件,即便是在异步情况下使用了catch也会触发该事件。

    上次更新: 2025/06/06, 07:21:49
    electron/window
    httpclient

    ← electron/window httpclient→

    Theme by Vdoing | Copyright © 2023-2025 哆啦好梦 | 京ICP备15041380号-2
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式
    ×