V1 Conformance - Create a best practice documentation for error handling
See original GitHub issueAs part of the conformance criteria, we would like Zowe Explorer to have a Best Practice Documenation on how to implement error handling.
V1 Conformance requirement is a documentation. In this document, we would like to advise extenders on how they are going to display their error message.
My proposal is
- to use this format:
Extension Name
-Error Message
- To throw a not implemented error for Zowe Explorer APIs that are not implemented in their extension
V2 requirement is an API: We would like to have an API that will allow users to call and pass their error message. It may still use the proposed format above. Additionally, we could implement error codes for better debugging (e.g. APIML Error Codes)
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Conformance Packs - AWS Config
Conformance packs are created by authoring a YAML template that contains the list of AWS Config managed or custom rules and remediation actions....
Read more >1EdTech Question & Test Interoperability (QTI) Specification
A QTI Conformance Certification program and online validation tool are ... Usage Data best practices and will be published here as soon as...
Read more >Version Control: A Good Practice Guide - University of Glasgow
It is a tool which tracks a series of draft documents, culminating in a final version. It provides an audit trail for the...
Read more >Errors | Cloud APIs - Google Cloud
In general, consider the following guidelines when writing error messages: ... This message is only used by error format v1. message ErrorProto {}...
Read more >Best practices for working with Microsoft Graph
Use Graph Explorer to get to know the API · Authentication · Consent and authorization · Handle responses effectively · Storing data locally ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@katelynienaber Similar to what FTP ext is doing here
More thoughts after talking with @lauren-li …
Test branch is here. Logger is here. Example of use is here.
I tagged people I think can answer the questions. But ofc anyone can add to this as they like 😃
Questions for @JillieBeanSim:
Questions for @VitGottwald & @nickImbirev:
ZosmfCommonApi
&ZosmfUssApi
. Then people could skip the import of the extended class if they don’t want the profiles dependency…if (string.includes("I am an error")) { ...
?Research needed:
package.json
with VSCode’s API? (In error messages, we must add identifying info about the extension name that caused the error)Conclusions
zowe-explorer-api/src/profiles
API folder, because they depend on VSCode. Maybe we can make some new file in thetree
folder…