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'm trying to add an option to some Errors but looking at your code the options are not stored inside the instance.
Also, the 'ember way' of using reopen does not work as these errors are not an ember object.
MaintenanceError.reopen({
useRouter: true, /* would navigate away from the UI where the issue happened */
useNotification: true, /* use a notification service */
});
So my question is a JS one. How would I add a property to an error definition?
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to add an option to some Errors but looking at your code the options are not stored inside the instance.
Also, the 'ember way' of using reopen does not work as these errors are not an ember object.
So my question is a JS one. How would I add a property to an error definition?
The text was updated successfully, but these errors were encountered: