Open efullea opened 11 years ago
All these need to be refactored as DOMErrors. The errors will need to match errors in the Error Names Table, and the message attribute will need to be used to provide the information like "radio is disabled", etc.
comment from @jmcanterafonseca :
const unsigned short INTERNAL_ERROR = 4;
Unknown error and internal error seem to be the same
const unsigned short NO_SIM_CARD_ERROR = 5;
I think here we would need to be more generic, maybe we can use something like SUBSCRIPTION_ERROR
const unsigned short RADIO_DISABLED_ERROR = 6;
This error seems to be similar to nosignal error. I believe we should not try to generate too many error states as later will be harder to check for compliance and interoperability, provided that there could be implementations not able to report errors with such a precision.
My favorite is SUCCESS_NO_ERROR ... error :)
Feedback from Mozilla's implementation experience: