hyper63 / hyper-adapter-sqlite

An adapter that implements the hyper Cache Port using SQLite
2 stars 0 forks source link

return hyper-esque errors #8

Closed TillaTheHun0 closed 2 years ago

TillaTheHun0 commented 2 years ago

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.