w3c / apiary

Simple JS library to use the W3C API in a declarative way
MIT License
13 stars 8 forks source link

Handle errors #5

Open tripu opened 9 years ago

tripu commented 9 years ago

Network errors, no authentication, empty JSON objects, unknown entities, properties not containing what's expected…

Also, catch the “limit reached” error message when we hit the API key limit; it'd be very confusing to users if that happens, and each and every call to the API fails silently starting at a certain time.