ember-exception-handling:Ember应用程序的异常处理实用程序

时间:2021-05-26 16:15:55
【文件属性】:
文件名称:ember-exception-handling:Ember应用程序的异常处理实用程序
文件大小:149KB
文件格式:ZIP
更新时间:2021-05-26 16:15:55
JavaScript 余烬例外处理 该插件提供了与Ember应用程序异常处理相关的实用程序。 安装 ember install ember-exception-handling 用法 虽然可以键入JavaScript应用程序中的某些错误,并可以评估特定类型的Error ,但是大多数错误只是利用Error类。 因此,JavaScript工程师不容易使用相同的异常处理语义。 尽管上述内容是正确的,但仍然有可能利用有助于评估是否已抛出某种错误的模式。 为此,我们采用模式匹配,它使我们能够灵活地检查错误和错误属性,以确定如何处理每个异常。 该附加组件带有一些有用的类型和实用程序。 PatterMatcher类 PatternMatcher是用于指定要匹配的错误模式的类。 PatternMatcher构造函数采用以下形式: constructor(error, Function) import Pattern
【文件预览】:
ember-exception-handling-master
----.gitignore(369B)
----README.md(3KB)
----ember-cli-build.js(190B)
----.ember-cli(280B)
----.prettierrc(52B)
----tests()
--------test-helper.js(228B)
--------dummy()
--------unit()
--------index.html(1KB)
----testem.js(569B)
----LICENSE(1KB)
----husky.config.js(86B)
----app()
--------.gitkeep(0B)
----package.json(2KB)
----CONTRIBUTING.md(645B)
----index.js(72B)
----config()
--------ember-try.js(2KB)
--------environment.js(89B)
----addon()
--------utils()
--------index.js(169B)
---------internal()
----.watchmanconfig(37B)
----.eslintignore(240B)
----.template-lintrc.js(63B)
----.npmignore(404B)
----.travis.yml(1KB)
----.editorconfig(368B)
----yarn.lock(339KB)
----.eslintrc.js(1KB)
----lint-staged.config.js(159B)

网友评论