addshore / addframe

OLD addwiki framework (See the newer https://github.com/addwiki libraries)
7 stars 2 forks source link

Generic API error handeling #139

Closed addshore closed 10 years ago

addshore commented 10 years ago

The api should have a generic way of handling errors...

potentially a single function gets passed the result / request and checks the api result for an error section, it then handles the error or throws a further exception to be handles elsewhere?

addshore commented 10 years ago

Any api errors now throw a usage exception, these are then handled at various levels