Closed Bug 1034326 Opened 12 years ago Closed 11 years ago

fxpay: return error objects so that errors can be more specific

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2015-03-17

People

(Reporter: kumar, Assigned: kumar)

References

Details

(Whiteboard: [qa-])

Error codes are strings, like INVALID_RECEIPT. Let's use error objects instead so that we can return specific errors such as ReceiptDecodeError or InvalidStoreData and the developer can do `if (error instanceof InvalidReceipt) ...` to catch them all.
Blocks: 956358
Priority: -- → P3
Blocks: 1058271
No longer blocks: 956358
Assignee: nobody → kumar.mcmillan
https://github.com/mozilla/fxpay/pull/88 Docs will be updated momentarily
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Target Milestone: --- → 2015-03-17
You need to log in before you can comment on or make changes to this bug.