Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

return hyper-esque errors #45

Open
tripott opened this issue Mar 7, 2022 · 0 comments
Open

return hyper-esque errors #45

tripott opened this issue Mar 7, 2022 · 0 comments
Labels

Comments

@tripott
Copy link

tripott commented Mar 7, 2022

update cloud.hyper adapters to return hyper-esque errors on managed errors and rejected promises on an unhandled exception.

Each adapter method in the case of handled exceptions should return a resolved promise that resolves to a hyper error

A hyper error consists of:

ok: false
msg: optional: string
status: optional: integer
Unhandled exceptions the adapter should return a rejected promise. We should get this oob.

@tripott tripott added the errors label Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant