intel / iotivity-node

Node.js bindings for IoTivity
https://www.iotivity.org/
42 stars 44 forks source link

Error types in OCF spec #120

Open hansmbakker opened 7 years ago

hansmbakker commented 7 years ago

While creating the Typescript definitions for iotivity-node @zolkis pointed me at the OCF spec.

I found out that the spec seems not to be followed wrt. the Error types - the spec uses Error subclasses (https://github.com/01org/iot-js-api/tree/master/api/ocf#error-handling) while iotivity-node uses the Error base class for everything.

Could anybody comment on that?