I need a service that I can pass an error object, for instance the object passed in the catch of a promise, and determine if that object is one condition or another, since the way that error object may be represented on iPhone or Android could be different. So I would say to this service "Does this error mean the file was not found?" and it would return true or false, abstracting the fact that we were on one platform or another.
I need a service that I can pass an error object, for instance the object passed in the catch of a promise, and determine if that object is one condition or another, since the way that error object may be represented on iPhone or Android could be different. So I would say to this service "Does this error mean the file was not found?" and it would return true or false, abstracting the fact that we were on one platform or another.