An example of where this could be useful has been implemented in #554 see line 106. This is a temporary workaround which should also be addressed and fixed when implementing this proposal. This case (and many others) could be handled more easily if the error had an error code:
switch (error.code) {
case 4000:
// do something for this error handling
break;
default:
// do something for general handling
break;
}
Proposal
Updating ResultObject type to something like this:
Motivation
An example of where this could be useful has been implemented in #554 see line 106. This is a temporary workaround which should also be addressed and fixed when implementing this proposal. This case (and many others) could be handled more easily if the error had an error code:
Proposal
Updating
ResultObject
type to something like this: