You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if we can do a little better here. JS already provides an Error class. The context constants probably ought to be classes (er, prototypes). Also might be good to distinguish user-level errors from internal ones. For instance, ReferenceError is probably better left uncaught. Also any ASN.1-level errors. Debug tools can then catch it and we go from there.
We can have an error type per component, and the ui.js top-level handler can whitelist a few to report to the user and re-raise the rest (reporting "oops, something broke").
The text was updated successfully, but these errors were encountered:
Issue #29. Dunno how useful this'll be. I'm thinking asn1.Error could be
errors in asn1 encode/decode, but we'll use things like TypeError to
deal with internal errors. Arguably all those can just throw strings for
random internal errors. Those are internal errors that we probably don't
never need to show to the user. Mainly we just want that exception to
propogate to top-level.
I wonder if we can do a little better here. JS already provides an Error class. The context constants probably ought to be classes (er, prototypes). Also might be good to distinguish user-level errors from internal ones. For instance, ReferenceError is probably better left uncaught. Also any ASN.1-level errors. Debug tools can then catch it and we go from there.
We can have an error type per component, and the ui.js top-level handler can whitelist a few to report to the user and re-raise the rest (reporting "oops, something broke").
The text was updated successfully, but these errors were encountered: